Skip to content

Commit

Permalink
Another fix for MacOS checksums. Checksum before deleting the dir, an…
Browse files Browse the repository at this point in the history
…d move the tar process into github action
  • Loading branch information
scosman committed Mar 1, 2025
1 parent 33159b1 commit 5d888b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build_desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Compress MacOS app param ignored on other platforms
- name: Build Desktop App
run: uv run bash ./app/desktop/build_desktop_app.sh --compress-mac-app
run: uv run bash ./app/desktop/build_desktop_app.sh

- name: Build Windows Installer
if: matrix.os == 'windows-latest'
Expand All @@ -55,7 +55,7 @@ jobs:

- name: Checksums (macOS)
if: runner.os == 'macOS'
run: find ./app/desktop/build/dist/Kiln.app ! -iname "./app/desktop/build/dist/Kiln.app/Contents/Resources/botocore/data/*" -type f -exec md5 {} \;
run: find ./app/desktop/build/dist/Kiln.app -type f -not -path "*/Contents/Resources/botocore/data/*" -exec md5 {} \;

- name: Checksums (Linux)
if: runner.os == 'Linux'
Expand All @@ -67,6 +67,15 @@ jobs:
certutil -hashfile ./app/desktop/build/dist/Kiln.Windows.Installer.exe SHA256
certutil -hashfile ./app/desktop/build/dist/Kiln/Kiln.exe SHA256
# MacOS apps have symlinks, and GitHub artifact upload zip will break them. Tar instead.
- name: Compress MacOS App
if: runner.os == 'macOS'
working-directory: ./app/desktop/build/dist
run: |
echo "Compressing MacOS app"
tar czpvf Kiln.app.tgz Kiln.app
rm -r Kiln.app
- name: Upload Build
uses: actions/upload-artifact@v4
with:
Expand Down
9 changes: 0 additions & 9 deletions app/desktop/build_desktop_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,3 @@ pyinstaller $(printf %s "$PLATFORM_OPTS") \
--noconfirm --distpath=./desktop/build/dist --workpath=./desktop/build/work \
-n Kiln --specpath=./desktop/build \
--paths=. ./desktop/desktop.py

# MacOS apps have symlinks, and GitHub artifact upload zip will break them. Tar instead.
if [[ $* == *--compress-mac-app* && "$(uname)" == "Darwin" ]]; then
echo "Compressing MacOS app"
cd ./desktop/build/dist
tar czpvf Kiln.app.tgz Kiln.app
rm -r Kiln.app
cd ../../..
fi

0 comments on commit 5d888b6

Please sign in to comment.