-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 82Flex <[email protected]>
- Loading branch information
Showing
19 changed files
with
200 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Xcode - Build Archive (macOS) | ||
|
||
on: | ||
push: | ||
branches: [ "feat/macos-native-support" ] | ||
|
||
env: | ||
MARKETING_VERSION: 0.0.0 | ||
PATCH_VERSION: 0 | ||
DEVELOPMENT_TEAM: GXZ23M5TP2 | ||
PACKAGING_IDENTITY: 'Developer ID Application: Zheng Wu (GXZ23M5TP2)' | ||
|
||
jobs: | ||
build: | ||
name: Build Notarized macOS Application | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure Code-Signing Keychain | ||
run: | | ||
KETSTORE_PATH="$PWD/Certificates/Certificates.p12" | ||
KEYCHAIN_PATH="$RUNNER_TEMP/app-signing.keychain-db" | ||
security create-keychain -p "$KEYSTORE_PASSWORD" "$KEYCHAIN_PATH" | ||
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH" | ||
security unlock-keychain -p "$KEYSTORE_PASSWORD" "$KEYCHAIN_PATH" | ||
security import "$KETSTORE_PATH" -P "$KEYSTORE_PASSWORD" -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH" | ||
security list-keychain -d user -s "$KEYCHAIN_PATH" | ||
env: | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
|
||
- name: Setup Xcode Version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: 15.1 | ||
|
||
- name: Read Version Strings | ||
run: | | ||
git fetch --tags | ||
export GIT_TAG=$(git describe --tags --always --abbrev=0) | ||
export PATCH_VERSION=$(echo "${GIT_TAG#v}" | cut -d. -f3) | ||
echo "PATCH_VERSION=${PATCH_VERSION}" >> $GITHUB_ENV | ||
echo "MARKETING_VERSION=${GIT_TAG#v}" >> $GITHUB_ENV | ||
- name: Build ReveilHelper | ||
run: | | ||
xcodebuild clean build archive -scheme ReveilHelper -project Reveil.xcodeproj -archivePath ReveilHelper.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]} | ||
- name: Build Reveil (macOS) | ||
run: | | ||
PATH=$PWD/ReveilHelper.xcarchive/Products/usr/local/bin:$PATH xcodebuild clean build archive -scheme Reveil -project Reveil.xcodeproj -sdk macosx -destination 'generic/platform=macOS' -archivePath Reveil CODE_SIGN_STYLE='Automatic' CODE_SIGN_IDENTITY='Apple Development' DEVELOPMENT_TEAM='${{ env.DEVELOPMENT_TEAM }}' | xcpretty && exit ${PIPESTATUS[0]} | ||
- name: Notarize Reveil | ||
run: | | ||
mkdir -p Distribution | ||
xcodebuild -exportArchive -archivePath Reveil.xcarchive -exportPath Distribution -exportOptionsPlist $PWD/ExportOptions.plist | ||
- name: Export Notarized Application | ||
run: | | ||
until xcodebuild -exportNotarizedApp -archivePath Reveil.xcarchive -exportPath Distribution; | ||
do | ||
echo "Waiting for notarization..." | ||
sleep 10 | ||
done | ||
- name: Install Packaging Tools | ||
run: | | ||
brew install graphicsmagick imagemagick | ||
npm install -g create-dmg | ||
- name: Create DMG | ||
run: | | ||
create-dmg --overwrite --identity='${{ env.PACKAGING_IDENTITY }}' Distribution/Reveil.app ./Distribution/ | ||
mv Distribution/*.dmg Reveil_${{ env.MARKETING_VERSION }}.dmg | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Reveil_${{ env.MARKETING_VERSION }} | ||
path: | | ||
Reveil.xcarchive | ||
ReveilHelper.xcarchive | ||
Distribution/Reveil_${{ env.MARKETING_VERSION }}.dmg | ||
- name: Upload Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
body_path: CHANGELOG.md | ||
files: Distribution/Reveil_${{ env.MARKETING_VERSION }}.dmg | ||
|
||
- name: Remove Code-Signing Keychain | ||
if: ${{ always() }} | ||
run: | | ||
security delete-keychain "$RUNNER_TEMP/app-signing.keychain-db" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ DerivedData/ | |
*.dSYM.zip | ||
*.dSYM | ||
*.xcarchive | ||
Distribution | ||
|
||
## Playgrounds | ||
timeline.xctimeline | ||
|
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>destination</key> | ||
<string>upload</string> | ||
<key>method</key> | ||
<string>developer-id</string> | ||
<key>signingStyle</key> | ||
<string>automatic</string> | ||
<key>teamID</key> | ||
<string>GXZ23M5TP2</string> | ||
</dict> | ||
</plist> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,66 @@ | |
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
}, | ||
{ | ||
"filename" : "icon_16x16.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"filename" : "icon_32x32.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"filename" : "icon_128x128.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"filename" : "icon_256x256.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"filename" : "icon_512x512.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "512x512" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "512x512" | ||
} | ||
], | ||
"info" : { | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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