-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9258a99
commit 240f548
Showing
1 changed file
with
45 additions
and
45 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 |
---|---|---|
|
@@ -65,51 +65,51 @@ jobs: | |
run: | | ||
corepack enable | ||
yarn cache clean | ||
- name: setup keychain for signing and notarising | ||
if: runner.os == 'macOS' | ||
env: | ||
KEYCHAIN_NAME: "build.keychain" | ||
CSC_LINK: ${{ secrets.CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PWD }} | ||
run: | | ||
security create-keychain -p "$KEYCHAIN_PWD" "$KEYCHAIN_NAME" | ||
security default-keychain -s "$KEYCHAIN_NAME" | ||
certfile="${HOME}/buildcert.p12" | ||
echo "$CSC_LINK" | base64 -d > "$certfile" | ||
security import \ | ||
"$certfile" \ | ||
-P "$CSC_KEY_PASSWORD" \ | ||
-A \ | ||
-k "$KEYCHAIN_NAME" | ||
rm "$certfile" | ||
security set-key-partition-list \ | ||
-S apple-tool:,apple:,codesign: \ | ||
-s \ | ||
-k "$KEYCHAIN_PWD" \ | ||
"$KEYCHAIN_NAME" | ||
security set-keychain-settings -lut 1200 | ||
- name: build release macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
cargo chipmunk release -c cli/config/codesign_macos.toml | ||
env: | ||
KEYCHAIN_NAME: "build.keychain-db" | ||
CSC_LINK: ${{ secrets.CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
APPLEID: ${{ secrets.APPLEID }} | ||
APPLEIDPASS: ${{ secrets.APPLEIDPASS }} | ||
TEAMID: ${{ secrets.TEAMID }} | ||
SIGNING_ID: ${{ secrets.SIGNING_ID }} | ||
KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PWD }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: build release | ||
if: runner.os != 'macOS' | ||
run: | | ||
cargo chipmunk release | ||
- name: list release files | ||
working-directory: ./application/holder/release | ||
run: ls | ||
# - name: setup keychain for signing and notarising | ||
# if: runner.os == 'macOS' | ||
# env: | ||
# KEYCHAIN_NAME: "build.keychain" | ||
# CSC_LINK: ${{ secrets.CSC_LINK }} | ||
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
# KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PWD }} | ||
# run: | | ||
# security create-keychain -p "$KEYCHAIN_PWD" "$KEYCHAIN_NAME" | ||
# security default-keychain -s "$KEYCHAIN_NAME" | ||
# certfile="${HOME}/buildcert.p12" | ||
# echo "$CSC_LINK" | base64 -d > "$certfile" | ||
# security import \ | ||
# "$certfile" \ | ||
# -P "$CSC_KEY_PASSWORD" \ | ||
# -A \ | ||
# -k "$KEYCHAIN_NAME" | ||
# rm "$certfile" | ||
# security set-key-partition-list \ | ||
# -S apple-tool:,apple:,codesign: \ | ||
# -s \ | ||
# -k "$KEYCHAIN_PWD" \ | ||
# "$KEYCHAIN_NAME" | ||
# security set-keychain-settings -lut 1200 | ||
# - name: build release macOS | ||
# if: runner.os == 'macOS' | ||
# run: | | ||
# cargo chipmunk release -c cli/config/codesign_macos.toml | ||
# env: | ||
# KEYCHAIN_NAME: "build.keychain" | ||
# CSC_LINK: ${{ secrets.CSC_LINK }} | ||
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
# APPLEID: ${{ secrets.APPLEID }} | ||
# APPLEIDPASS: ${{ secrets.APPLEIDPASS }} | ||
# TEAMID: ${{ secrets.TEAMID }} | ||
# SIGNING_ID: ${{ secrets.SIGNING_ID }} | ||
# KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PWD }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: build release | ||
# if: runner.os != 'macOS' | ||
# run: | | ||
# cargo chipmunk release | ||
# - name: list release files | ||
# working-directory: ./application/holder/release | ||
# run: ls | ||
# - name: upload files | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# uses: AButler/[email protected] | ||
|