-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 75572f4 Author: Dimitris Panokostas <[email protected]> Date: Sat Nov 23 10:59:04 2024 +0100 bugfix: ensure CPack also has correct capitalization (fixes #1514) commit 2e70acc Author: Dimitris Panokostas <[email protected]> Date: Sat Nov 23 10:45:29 2024 +0100 bugfix: Linux builds should have PROJECT_NAME in lower case Looks like the CMAKE_SYSTEM_NAME variable is only valid AFTER the project is set. We need a capitalized name for macOS builds, but lowercase for linux ones. commit a1591ee Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 20:55:07 2024 +0100 chore: only write config options if they are enabled - Manual Crop - Drawbridge These options would be written to the config always, even if not enabled commit 249a132 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 20:48:03 2024 +0100 chore: bump options version to 7.0.0 commit 85044a8 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 18:57:06 2024 +0100 enhancement: add ".vbi" in global ROM extensions also #1507 commit 63fee15 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 18:54:22 2024 +0100 fix typo It's not vdi, but vbi commit 2c1e921 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 18:52:07 2024 +0100 bugfix: allow .vdi selection in Expansions ROMs #1507 These types of files are VGA rom files, but they were filtered out based on the filename extensions commit 1718e2c Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 18:38:44 2024 +0100 bugfix: #1507 Expansions GUI CPU board fixes When selecting a CPU board from the dropdown, the sub-options did not get enables as expected commit f7f09bf Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 08:39:49 2024 +0100 Update README.md Remove obsolete info about bypassing security on MacOS installation commit 9d0c218 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 00:46:20 2024 +0100 ci: added missing team ID commit a197c86 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 00:36:07 2024 +0100 ci: added notary service steps commit 10fe364 Author: Dimitris Panokostas <[email protected]> Date: Fri Nov 22 00:04:40 2024 +0100 ci: fix macOS signing commit 97a7021 Author: Dimitris Panokostas <[email protected]> Date: Thu Nov 21 23:53:19 2024 +0100 ci: fix capitalization for MacOS App bundle commit 0fe6e54 Author: Dimitris Panokostas <[email protected]> Date: Thu Nov 21 23:53:00 2024 +0100 ci: Add Apple certificate signing to dylibs and app bundle commit 0344272 Author: Dimitris Panokostas <[email protected]> Date: Thu Nov 21 20:29:38 2024 +0100 ci: Added missing create keychain step commit 935fcda Author: Dimitris Panokostas <[email protected]> Date: Thu Nov 21 20:09:34 2024 +0100 ci: add apple signing certificate setup in workflow commit d9804b3 Author: Dimitris Panokostas <[email protected]> Date: Sat Nov 16 10:48:46 2024 +0100 Update README.md (#1511)
- Loading branch information
Showing
8 changed files
with
138 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,66 @@ jobs: | |
brew update | ||
brew install sdl2 mpg123 sdl2_ttf sdl2_image flac libmpeg2 libserialport portmidi enet dylibbundler | ||
- name: make for macOS X64 | ||
- name: Install the Apple certificate | ||
env: | ||
APPLE_DEVID_CERT_BASE64: ${{ secrets.APPLE_DEVID_CERT_BASE64 }} | ||
APPLE_DEVID_CERT_P12_PASSWORD: ${{ secrets.APPLE_DEVID_CERT_P12_PASSWORD }} | ||
APPLE_KEYCHAIN_PASSWORD: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }} | ||
run: | | ||
# create variables | ||
CERTIFICATE_PATH=$RUNNER_TEMP/apple_devid_cert.p12 | ||
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db | ||
# import certificate from secret | ||
echo -n "$APPLE_DEVID_CERT_BASE64" | base64 --decode -o $CERTIFICATE_PATH | ||
# create keychain | ||
security create-keychain -p $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH | ||
security unlock-keychain -p $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
# import certificate to keychain | ||
security import $CERTIFICATE_PATH -P $APPLE_DEVID_CERT_P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH | ||
security set-key-partition-list -S apple-tool:,apple: -s -k $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
security list-keychains -d user -s $KEYCHAIN_PATH | ||
- name: Build for macOS X64 | ||
run: | | ||
cmake -B build && cmake --build build -j4 | ||
- name: Codesign the dylibs | ||
run: | | ||
for file in build/Amiberry.app/Contents/Frameworks/*.dylib; do | ||
if [ -f "$file" ]; then | ||
codesign -s "Developer ID Application: Dimitris Panokostas (5GQP72592A)" -f -o runtime,hard $file | ||
fi | ||
done | ||
- name: Codesign the app | ||
run: | | ||
codesign -s "Developer ID Application: Dimitris Panokostas (5GQP72592A)" -f -o runtime,hard build/Amiberry.app | ||
- name: Create a zip to send to the notary service | ||
run: | | ||
zip -r Amiberry-${{ github.sha }}-macOS-x86_64.zip build/Amiberry.app | ||
- name: Send the file to be notarized by Apple | ||
run: | | ||
xcrun notarytool submit Amiberry-${{ github.sha }}-macOS-x86_64.zip --wait --apple-id "[email protected]" --password ${{ secrets.APPLE_NOTARY_APP_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }} | ||
- name: Staple the notary receipt to the application bundle | ||
run: | | ||
xcrun stapler staple build/Amiberry.app | ||
- name: Create DMG package | ||
run: | | ||
cpack -G DragNDrop --config build/CPackConfig.cmake | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: amiberry-macOS-64bit-intel | ||
path: amiberry-*.dmg | ||
path: Amiberry-*.dmg | ||
|
||
build-macOS-Apple-Silicon: | ||
runs-on: macos-latest | ||
|
@@ -47,16 +97,66 @@ jobs: | |
brew upgrade | ||
brew install sdl2 mpg123 sdl2_ttf sdl2_image flac libmpeg2 libserialport portmidi enet dylibbundler | ||
- name: make for macOS Apple Silicon | ||
- name: Install the Apple certificate | ||
env: | ||
APPLE_DEVID_CERT_BASE64: ${{ secrets.APPLE_DEVID_CERT_BASE64 }} | ||
APPLE_DEVID_CERT_P12_PASSWORD: ${{ secrets.APPLE_DEVID_CERT_P12_PASSWORD }} | ||
APPLE_KEYCHAIN_PASSWORD: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }} | ||
run: | | ||
# create variables | ||
CERTIFICATE_PATH=$RUNNER_TEMP/apple_devid_cert.p12 | ||
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db | ||
# import certificate from secret | ||
echo -n "$APPLE_DEVID_CERT_BASE64" | base64 --decode -o $CERTIFICATE_PATH | ||
# create keychain | ||
security create-keychain -p $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH | ||
security unlock-keychain -p $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
# import certificate to keychain | ||
security import $CERTIFICATE_PATH -P $APPLE_DEVID_CERT_P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH | ||
security set-key-partition-list -S apple-tool:,apple: -s -k $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH | ||
security list-keychains -d user -s $KEYCHAIN_PATH | ||
- name: Build for macOS Apple Silicon | ||
run: | | ||
cmake -B build && cmake --build build -j4 | ||
- name: Codesign the dylibs | ||
run: | | ||
for file in build/Amiberry.app/Contents/Frameworks/*.dylib; do | ||
if [ -f "$file" ]; then | ||
codesign -s "Developer ID Application: Dimitris Panokostas (5GQP72592A)" -f -o runtime,hard $file | ||
fi | ||
done | ||
- name: Codesign the app | ||
run: | | ||
codesign -s "Developer ID Application: Dimitris Panokostas (5GQP72592A)" -f -o runtime,hard build/Amiberry.app | ||
- name: Create a zip to send to the notary service | ||
run: | | ||
zip -r Amiberry-${{ github.sha }}-macOS-Apple-Silicon.zip build/Amiberry.app | ||
- name: Send the file to be notarized by Apple | ||
run: | | ||
xcrun notarytool submit Amiberry-${{ github.sha }}-macOS-Apple-Silicon.zip --wait --apple-id "[email protected]" --password ${{ secrets.APPLE_NOTARY_APP_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }} | ||
- name: Staple the notary receipt to the application bundle | ||
run: | | ||
xcrun stapler staple build/Amiberry.app | ||
- name: Create DMG package | ||
run: | | ||
cpack -G DragNDrop --config build/CPackConfig.cmake | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: amiberry-macOS-64bit-apple-silicon | ||
path: amiberry-*.dmg | ||
path: Amiberry-*.dmg | ||
|
||
build-ubuntu-24-amd64: | ||
runs-on: ubuntu-24.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters