* fix build failed
This commit is contained in:
parent
dbf5d9ce1f
commit
4f671bb137
2 changed files with 22 additions and 10 deletions
16
.github/workflows/nightly.yml
vendored
16
.github/workflows/nightly.yml
vendored
|
|
@ -235,25 +235,31 @@ jobs:
|
||||||
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
||||||
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
||||||
run: |
|
run: |
|
||||||
pip3 install rcodesign
|
cleanup() {
|
||||||
|
rm -rf .venv-rcodesign
|
||||||
|
rm -f cert.p12 notary-key.p8
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
python3 -m venv .venv-rcodesign
|
||||||
|
./.venv-rcodesign/bin/python -m pip install --upgrade pip
|
||||||
|
./.venv-rcodesign/bin/python -m pip install rcodesign
|
||||||
|
|
||||||
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
||||||
|
|
||||||
rcodesign sign \
|
./.venv-rcodesign/bin/rcodesign sign \
|
||||||
--p12-file cert.p12 \
|
--p12-file cert.p12 \
|
||||||
--p12-password "$MACOS_SIGN_PASSWORD" \
|
--p12-password "$MACOS_SIGN_PASSWORD" \
|
||||||
picoclaw-launcher-cgo
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
||||||
|
|
||||||
rcodesign notary-submit \
|
./.venv-rcodesign/bin/rcodesign notary-submit \
|
||||||
--api-key-path notary-key.p8 \
|
--api-key-path notary-key.p8 \
|
||||||
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
||||||
--wait \
|
--wait \
|
||||||
picoclaw-launcher-cgo
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
rm -f cert.p12 notary-key.p8
|
|
||||||
|
|
||||||
- name: Upload launcher artifact
|
- name: Upload launcher artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
|
|
@ -194,25 +194,31 @@ jobs:
|
||||||
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
||||||
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
||||||
run: |
|
run: |
|
||||||
pip3 install rcodesign
|
cleanup() {
|
||||||
|
rm -rf .venv-rcodesign
|
||||||
|
rm -f cert.p12 notary-key.p8
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
python3 -m venv .venv-rcodesign
|
||||||
|
./.venv-rcodesign/bin/python -m pip install --upgrade pip
|
||||||
|
./.venv-rcodesign/bin/python -m pip install rcodesign
|
||||||
|
|
||||||
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
||||||
|
|
||||||
rcodesign sign \
|
./.venv-rcodesign/bin/rcodesign sign \
|
||||||
--p12-file cert.p12 \
|
--p12-file cert.p12 \
|
||||||
--p12-password "$MACOS_SIGN_PASSWORD" \
|
--p12-password "$MACOS_SIGN_PASSWORD" \
|
||||||
picoclaw-launcher-cgo
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
||||||
|
|
||||||
rcodesign notary-submit \
|
./.venv-rcodesign/bin/rcodesign notary-submit \
|
||||||
--api-key-path notary-key.p8 \
|
--api-key-path notary-key.p8 \
|
||||||
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
||||||
--wait \
|
--wait \
|
||||||
picoclaw-launcher-cgo
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
rm -f cert.p12 notary-key.p8
|
|
||||||
|
|
||||||
- name: Upload launcher artifact
|
- name: Upload launcher artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue