Skip to content

Commit

Permalink
Attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrusnetwork committed Feb 11, 2025
1 parent 7c95895 commit 13b1473
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,21 @@ jobs:
mkdir -p "Hydrus Network.app/Contents/Frameworks"
mv install/static/icon.icns "Hydrus Network.app/Contents/Resources/icon.icns"
cp install/static/build_files/macos/Info.plist "Hydrus Network.app/Contents/Info.plist"
cp install/static/build_files/macos/ReadMeFirst.rtf ./ReadMeFirst.rtf
cp install/static/build_files/macos/running_from_app "install/running_from_app"
ln -s /Applications ./Applications
mv install/* "Hydrus Network.app/Contents/MacOS/"
rm -rf install
-
name: Build DMG
name: Zip it up
run: |
cd $GITHUB_WORKSPACE
temp_dmg="$(mktemp).dmg"
# we are out here
# https://github.com/actions/runner-images/issues/7522
# https://github.com/nuttyartist/notes/commit/79170cca1a21929d2d5d33808b8cac02ad58dd7d#diff-7b74d73de878e0e53f6768bbf3a3d4b50c3c6f1f16f9b64518690028b8206b1cR191
max_tries=10
attempt=0
until hdiutil create "$temp_dmg" -ov -volname "HydrusNetwork" -fs HFS+ -format ULFO -srcfolder "$GITHUB_WORKSPACE/build/$(head -n 1 triple.txt)/release"
do
attempt=$((attempt + 1))
if [ "$attempt" -eq "$max_tries" ]; then
echo 'Error: $max_tries attempts at hdiutil did not do it!'
exit 1
fi
sleep 5
done
mv "$temp_dmg" Hydrus.Network.${{ env.version_short }}.-.macOS.-.App.dmg
cd build/$(head -n 1 triple.txt)/release
zip -r "Hydrus Network.zip" "Hydrus Network.app"
mv "Hydrus Network.zip" "$GITHUB_WORKSPACE/Hydrus.Network.${{ env.version_short }}.-.macOS.-.App.zip"
cd $GITHUB_WORKSPACE
-
name: Upload Files
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Hydrus.Network.${{ env.version_short }}.-.macOS.-.App.dmg
Hydrus.Network.${{ env.version_short }}.-.macOS.-.App.zip

0 comments on commit 13b1473

Please sign in to comment.