Skip to content

Commit

Permalink
Related to 9a4cd49, move the mac installer into the 'installer' folde…
Browse files Browse the repository at this point in the history
…r along with Windows
  • Loading branch information
cameronwhite committed Dec 22, 2020
1 parent c4db3dd commit 33d8cb0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
run: dotnet test Pinta.sln --configuration Release
- name: Build Installer
run: |
cd osx
cd installer/macos
./build_installer.sh
- name: Upload Installer
uses: actions/upload-artifact@v2
with:
name: "Pinta.app.zip"
path: osx/Pinta.app.zip
path: installer/macos/Pinta.app.zip
if-no-files-found: error

build-windows:
Expand Down
10 changes: 0 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ releasetar: $(BINFILES)
releasezip: $(BINFILES)
cd $(BINDIR) && zip -r ../$(RELEASE_FILE).zip * -x "*.mdb"

releaseosx: build $(BINFILES)
mkdir -p $(MAC_APP_DIR)/Contents/{MacOS,Resources}
cp -r $(BINDIR)/locale $(BINFILES) $(DEBUG_FILES) $(BINDIR)/ICSharpCode.SharpZipLib.dll osx/pinta $(MAC_APP_BIN_DIR)
chmod +x $(MAC_APP_BIN_DIR)/pinta
cp osx/Info.plist $(MAC_APP_DIR)/Contents
cp osx/pinta.icns $(MAC_APP_DIR)/Contents/Resources
touch $(MAC_APP_DIR)
zip -r9uq $(MAC_APP_DIR).zip $(MAC_APP_DIR)
rm -rf $(MAC_APP_DIR)

EXTRA_DIST = Pinta Pinta.Core Pinta.Docking Pinta.Effects Pinta.Gui.Widgets Pinta.Resources Pinta.Tools po xdg tests license-mit.txt \
license-pdn.txt Pinta.sln Pinta.Install.proj pinta.pc.in readme.md intltool-extract.in \
intltool-merge.in intltool-update.in
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions osx/build_installer.sh → installer/macos/build_installer.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/sh
set -x

msbuild ../Pinta.Install.proj -target:CompileTranslations
dotnet publish ../Pinta.sln --configuration Release -r osx-x64
msbuild ../../Pinta.Install.proj -target:CompileTranslations
dotnet publish ../../Pinta.sln --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
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 -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}
Expand Down
File renamed without changes.

0 comments on commit 33d8cb0

Please sign in to comment.