Skip to content

Commit

Permalink
Bumps to 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jerefrer committed Jul 17, 2024
1 parent ecf9c6e commit 41d7a0d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 42 deletions.
46 changes: 7 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'

jobs:
publish-tauri:
permissions:
Expand Down Expand Up @@ -59,50 +58,19 @@ jobs:
- name: Extract the database
run: cd public && 7z x database.7z && rm database.7z

- name: Decode and Import Certificate
if: matrix.platform == 'macos-latest'
env:
CERTIFICATE_P12: ${{ secrets.CERTIFICATE_P12 }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
run: |
echo $CERTIFICATE_P12 | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P $CERTIFICATE_PASSWORD -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
- name: Build Tauri app
run: npm run tauri build

- name: Code sign the app
if: matrix.platform == 'macos-latest'
run: |
codesign --deep --force --verbose --sign "Developer ID Application: Your Name (Team ID)" src-tauri/target/release/bundle/macos/YourApp.app
- name: Create zip for notarization
if: matrix.platform == 'macos-latest'
run: |
ditto -c -k --sequesterRsrc --keepParent src-tauri/target/release/bundle/macos/YourApp.app YourApp.zip
- name: Notarize app
if: matrix.platform == 'macos-latest'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
run: |
xcrun altool --notarize-app --primary-bundle-id "com.yourcompany.yourapp" --username "$APPLE_ID" --password "$APPLE_PASSWORD" --file YourApp.zip
- name: Staple notarization
if: matrix.platform == 'macos-latest'
run: |
xcrun stapler staple src-tauri/target/release/bundle/macos/YourApp.app
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
with:
tagName: app-v__VERSION__
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: false
prerelease: false
args: ${{ matrix.args }}
args: ${{ matrix.args }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tibetan-translator",
"version": "0.9.2",
"version": "0.9.3",
"description": "An attempt at providing access to the best Tibetan dictionaries in a pleasant interface for all devices.",
"author": "Lekshe (Jeremy FRERE)",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "TibetanTranslator"
version = "0.9.2"
version = "0.9.3"
description = "An attempt at providing access to the best Tibetan dictionaries in a pleasant interface for all devices."
authors = ["Lekshe (Jeremy FRERE)"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "TibetanTranslator",
"version": "0.9.2",
"version": "0.9.3",
"identifier": "com.jerefrer.TibetanTranslator",
"build": {
"frontendDist": "../dist",
Expand Down

0 comments on commit 41d7a0d

Please sign in to comment.