#!/bin/sh
set -x

dotnet publish ../../Pinta.sln -p:BuildTranslations=true --configuration Release -r osx-x64

MAC_APP_DIR=Pinta.app
MAC_APP_BIN_DIR="${MAC_APP_DIR}/Contents/MacOS/"
BIN_DIR=../../bin/osx-x64/publish

mkdir -p ${MAC_APP_DIR}/Contents/{MacOS,Resources}
cp -r ${BIN_DIR}/ ../../bin/locale ${MAC_APP_BIN_DIR}
cp Info.plist ${MAC_APP_DIR}/Contents
cp pinta.icns ${MAC_APP_DIR}/Contents/Resources
touch ${MAC_APP_DIR}
zip -r9uq ${MAC_APP_DIR}.zip ${MAC_APP_DIR}

#!/bin/sh
set -x

MAC_APP_DIR=Pinta.app
MAC_APP_BIN_DIR="${MAC_APP_DIR}/Contents/MacOS/"

mkdir -p ${MAC_APP_DIR}/Contents/{MacOS,Resources}
dotnet publish ../../Pinta.sln -p:BuildTranslations=true --configuration Release -r osx-x64 -o ${MAC_APP_BIN_DIR}
cp Info.plist ${MAC_APP_DIR}/Contents
cp pinta.icns ${MAC_APP_DIR}/Contents/Resources
touch ${MAC_APP_DIR}
zip -r9uq ${MAC_APP_DIR}.zip ${MAC_APP_DIR}

Fix an issue with the macOS installer from the previous commit.
Fix an issue with the macOS installer from the previous commit.

We should directly run 'dotnet publish' with the Contents/MacOS folder as the output directory, rather than copying things over from a different folder.
The previous approach worked, but did have a leftover warning about the non-existent bin/locale folder.
