Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd106ed4

Browse files
committed
retry
1 parentb42dcfd commitd106ed4

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

‎.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ jobs:
4747
security import "$CERT_PATH" -P "$CERT_PASSWORD" -A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
4848
security list-keychain -d user -s "$KEYCHAIN_PATH"
4949
50-
-name:Setup Nix
51-
run:brew install xcodegen
50+
-name:Setup Deps
51+
run:|
52+
brew install xcodegen
53+
npm install --global create-dmg
5254
5355
-name:Build
56+
env:
57+
APPLE_ID:${{ secrets.APPLE_NOTARYTOOL_USERNAME }}
58+
APPLE_ID_PASSWORD:${{ secrets.APPLE_NOTARYTOOL_PASSWORD }}
5459
run:|
5560
./scripts/build.sh
5661

‎scripts/build.sh

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ get_uuid() {
66
strings"$1"| grep -E -o'[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}'
77
}
88

9-
# BuildDocumentatation @ https://developer.apple.com/forums/thread/737894
9+
# BuildDocumentation @ https://developer.apple.com/forums/thread/737894
1010

1111
XCODE_PROVISIONING_PROFILES_DIR="$HOME/Library/Developer/Xcode/UserData/Provisioning Profiles"
1212
ALT_PROVISIONING_PROFILES_DIR="$HOME/Library/MobileDevice/Provisioning Profiles"
1313
mkdir -p"$XCODE_PROVISIONING_PROFILES_DIR"
1414
mkdir -p"$ALT_PROVISIONING_PROFILES_DIR"
15-
CODE_SIGN_IDENTITY="Developer ID Application: Coder Technologies Inc (4399GN35BJ)"
15+
APPLE_TEAM_ID="4399GN35BJ"
16+
CODE_SIGN_IDENTITY="Developer ID Application: Coder Technologies Inc (${APPLE_TEAM_ID})"
1617

1718
APP_PROVISIONING_PROFILE_ID=$(get_uuid"$APP_PROF_PATH")
1819
EXT_PROVISIONING_PROFILE_ID=$(get_uuid"$EXT_PROF_PATH")
@@ -37,4 +38,22 @@ xcodebuild \
3738
CODE_SIGN_IDENTITY="$CODE_SIGN_IDENTITY" \
3839
OTHER_CODE_SIGN_FLAGS='--timestamp'| LC_ALL="en_US.UTF-8" xcpretty
3940

40-
ditto"$(find"$HOME/Library/Developer/Xcode/DerivedData" -name"Coder Desktop.app")""./build/Coder Desktop.app"
41+
app_path="$(find"$HOME/Library/Developer/Xcode/DerivedData" -name"Coder Desktop.app")"
42+
43+
create-dmg \
44+
--identity="$CODE_SIGN_IDENTITY" \
45+
"$app_path" \
46+
./
47+
48+
mkdir build
49+
mv ./Coder\Desktop*.dmg"./build/Coder Desktop.dmg"
50+
51+
xcrun notarytool store-credentials"notarytool-credentials" \
52+
--apple-id"$APPLE_ID" \
53+
--team-id"$APPLE_TEAM_ID" \
54+
--password"$APPLE_ID_PASSWORD"
55+
56+
# xcrun notarytool submit "Coder Desktop.dmg" --keychain-profile "notarytool-credentials" --wait
57+
58+
# xcrun stapler staple "Coder Desktop.dmg"
59+
# xcrun stapler staple "$app_path"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp