Skip to content

Commit

Permalink
Merge pull request #232 from Kiln-AI/build_checksums
Browse files Browse the repository at this point in the history
Build checksums
  • Loading branch information
scosman authored Mar 1, 2025
2 parents c6366ca + 5d888b6 commit cdaa050
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
27 changes: 26 additions & 1 deletion .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 @@ -51,6 +51,31 @@ jobs:
if: matrix.os == 'windows-latest'
run: cp ./app/desktop/Output/kilnsetup.exe ./app/desktop/build/dist/Kiln.Windows.Installer.exe

# Print checksums, so anyone can verify the build

- name: Checksums (macOS)
if: runner.os == 'macOS'
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'
run: find ./app/desktop/build/dist -type f -exec sha256sum {} \;

- name: Checksums (Windows)
if: runner.os == 'Windows'
run: |
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 cdaa050

Please sign in to comment.