mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
test dmg
This commit is contained in:
parent
7e7e99b5ff
commit
5fab253a9d
2 changed files with 22 additions and 42 deletions
62
.github/workflows/m1.yml
vendored
62
.github/workflows/m1.yml
vendored
|
@ -25,53 +25,33 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: teaxyz/setup@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
target: build
|
||||
node-version: 16
|
||||
- name: install Rust stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7.18.2
|
||||
run_install: true
|
||||
|
||||
# - uses: apple-actions/import-codesign-certs@d54750db52a4d3eaed0fc107a8bab3958f3f7494
|
||||
# with:
|
||||
# p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||
# p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||
- run: pnpm build:gui
|
||||
|
||||
- name: zip app
|
||||
- name: Codesign package
|
||||
run: |
|
||||
cd ./modules/gui/src-tauri/target/release/bundle/macos/ && zip -r tea.zip tea.app
|
||||
|
||||
- uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-1
|
||||
codesign -s "Developer ID Application: Tea Inc. (7WV56FL599)" -v --force --deep --timestamp --preserve-metadata=entitlements -o runtime ./modules/gui/src-tauri/target/release/bundle/macos/tea.app || true
|
||||
codesign -s "Developer ID Application: Tea Inc. (7WV56FL599)" -v --force --deep --timestamp --preserve-metadata=entitlements -o runtime ./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_aarch64.dmg || true
|
||||
|
||||
- name: cp package images from prod to preview bucket
|
||||
run: |
|
||||
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/macos/tea.zip "s3://preview.gui.tea.xyz/release/tea.zip"
|
||||
|
||||
# - name: setup node
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: 16
|
||||
# - name: install Rust stable
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# - uses: pnpm/action-setup@v2
|
||||
# with:
|
||||
# version: 7.18.2
|
||||
# run_install: true
|
||||
|
||||
# # - uses: apple-actions/import-codesign-certs@d54750db52a4d3eaed0fc107a8bab3958f3f7494
|
||||
# # with:
|
||||
# # p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
|
||||
# # p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
|
||||
# - run: pnpm build:gui
|
||||
|
||||
# - name: Codesign package
|
||||
# run: |
|
||||
# codesign -s "Developer ID Application: Tea Inc. (7WV56FL599)" -v --force --deep --timestamp --preserve-metadata=entitlements -o runtime ./modules/gui/src-tauri/target/release/bundle/macos/tea.app || true
|
||||
|
||||
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_aarch64.dmg "s3://preview.gui.tea.xyz/release/tea.dmg"
|
||||
# - name: zip app
|
||||
# run: |
|
||||
# cd ./modules/gui/src-tauri/target/release/bundle/macos/ && zip -r tea.zip tea.app
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"release": "sh ./.github/update-latest-binary.sh",
|
||||
"build:gui": "pnpm --filter gui exec tauri build -b dmg --verbose",
|
||||
"build:gui": "pnpm --filter gui exec tauri build --verbose",
|
||||
"dev:gui": "pnpm --filter gui exec tauri dev",
|
||||
"web:gui": "BUILD_FOR=preview pnpm --filter gui dev"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue