Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Sep 6, 2024
2 parents e45a4f9 + 644b537 commit 8f4baaf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ jobs:
run: |
machine=${{ matrix.wsystem }}
if [ "$machine" = "macosx" ] ; then
mkdir jar_contents
unzip "${{ env.WEASIS_INPUT_BIN }}"/weasis-launcher.jar -d jar_contents
codesign --force --deep --timestamp --sign "${{ secrets.MACOS__DEVELOPER_ID }}" -vvv --keychain "$HOME/Library/Keychains/signing_temp.keychain-db" jar_contents/com/formdev/flatlaf/natives/libflatlaf-macos-arm64.dylib
codesign --force --deep --timestamp --sign "${{ secrets.MACOS__DEVELOPER_ID }}" -vvv --keychain "$HOME/Library/Keychains/signing_temp.keychain-db" jar_contents/com/formdev/flatlaf/natives/libflatlaf-macos-x86_64.dylib
jar cfv weasis-launcher.jar -C jar_contents .
mv -f weasis-launcher.jar "${{ env.WEASIS_INPUT_BIN }}"/weasis-launcher.jar
rm -rf jar_contents
declare -a customOptions=("--java-options" "-splash:\$APPDIR/resources/images/about-round.png" "--java-options" "-Dapple.laf.useScreenMenuBar=true" "--java-options" "-Dapple.awt.application.appearance=NSAppearanceNameDarkAqua")
declare -a signArgs=("--mac-package-identifier" "${{ env.IDENTIFIER }}" "--mac-signing-keychain" "$HOME/Library/Keychains/signing_temp.keychain-db" "--mac-sign")
elif [ "$machine" = "windows" ] ; then
Expand Down
10 changes: 10 additions & 0 deletions weasis-distributions/script/package-weasis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ if [ "$arc" = "x86" ] ; then
find "$INPUT_DIR"/bundle/*-x86* -type f -name "*-${machine}-x86-64-*" -exec rm -f {} \;
fi

if [ "$machine" = "macosx" ] ; then
mkdir jar_contents
unzip "$INPUT_DIR"/weasis-launcher.jar -d jar_contents
codesign --force --deep --timestamp --sign "$CERTIFICATE" -vvv jar_contents/com/formdev/flatlaf/natives/libflatlaf-macos-arm64.dylib
codesign --force --deep --timestamp --sign "$CERTIFICATE" -vvv jar_contents/com/formdev/flatlaf/natives/libflatlaf-macos-x86_64.dylib
jar cfv weasis-launcher.jar -C jar_contents .
mv -f weasis-launcher.jar "$INPUT_DIR"/weasis-launcher.jar
rm -rf jar_contents
fi

# Remove previous package
if [ -d "${OUTPUT_PATH}" ] ; then
rm -rf "${OUTPUT_PATH}"
Expand Down

0 comments on commit 8f4baaf

Please sign in to comment.