-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
d1e50f7
commit 58a332d
Showing
5 changed files
with
152 additions
and
158 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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
name: 'Publish' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
|
||
jobs: | ||
publish-tauri: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
publish-tauri: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: install Rust stable | ||
uses: actions-rs/toolchain@stable | ||
with: | ||
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. | ||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | ||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||
- name: install app dependencies and build it | ||
run: yarn && yarn tauri:build | ||
- uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
with: | ||
tagName: gitbar-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | ||
releaseName: Gitbar v__VERSION__ | ||
releaseBody: 'See the assets to download this version and install.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: install Rust stable | ||
uses: actions-rs/toolchain@stable | ||
with: | ||
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. | ||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | ||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||
- name: install app dependencies and build it | ||
run: yarn && yarn tauri:build | ||
- uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
with: | ||
tagName: gitbar-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | ||
releaseName: Gitbar v__VERSION__ | ||
releaseBody: 'See the assets to download this version and install.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} |
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
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
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
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 |
---|---|---|
@@ -1,87 +1,81 @@ | ||
{ | ||
"$schema": "../node_modules/@tauri-apps/cli/schema.json", | ||
"build": { | ||
"beforeBuildCommand": "yarn build", | ||
"beforeDevCommand": "yarn dev", | ||
"devPath": "http://localhost:3000", | ||
"distDir": "../dist" | ||
"$schema": "../node_modules/@tauri-apps/cli/schema.json", | ||
"build": { | ||
"beforeBuildCommand": "yarn build", | ||
"beforeDevCommand": "yarn dev", | ||
"devPath": "http://localhost:3000", | ||
"distDir": "../dist" | ||
}, | ||
"package": { | ||
"productName": "GitBar", | ||
"version": "0.4.3" | ||
}, | ||
"tauri": { | ||
"allowlist": { | ||
"http": { | ||
"request": true, | ||
"scope": ["https://**"] | ||
}, | ||
"notification": { | ||
"all": true | ||
}, | ||
"shell": { | ||
"open": true | ||
} | ||
}, | ||
"package": { | ||
"productName": "GitBar", | ||
"version": "0.4.2" | ||
"bundle": { | ||
"active": true, | ||
"category": "DeveloperTool", | ||
"copyright": "", | ||
"deb": { | ||
"depends": [] | ||
}, | ||
"externalBin": [], | ||
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"], | ||
"identifier": "com.gitbar.dev", | ||
"longDescription": "Github reviews in your system taskbar", | ||
"macOS": { | ||
"entitlements": null, | ||
"exceptionDomain": "", | ||
"frameworks": [], | ||
"providerShortName": null, | ||
"signingIdentity": null | ||
}, | ||
"resources": [], | ||
"shortDescription": "", | ||
"targets": "all", | ||
"windows": { | ||
"certificateThumbprint": null, | ||
"digestAlgorithm": "sha256", | ||
"timestampUrl": "" | ||
} | ||
}, | ||
"tauri": { | ||
"allowlist": { | ||
"http": { | ||
"request": true, | ||
"scope": ["https://**"] | ||
}, | ||
"notification": { | ||
"all": true | ||
}, | ||
"shell": { | ||
"open": true | ||
} | ||
}, | ||
"bundle": { | ||
"active": true, | ||
"category": "DeveloperTool", | ||
"copyright": "", | ||
"deb": { | ||
"depends": [] | ||
}, | ||
"externalBin": [], | ||
"icon": [ | ||
"icons/32x32.png", | ||
"icons/128x128.png", | ||
"icons/[email protected]", | ||
"icons/icon.icns", | ||
"icons/icon.ico" | ||
], | ||
"identifier": "com.gitbar.dev", | ||
"longDescription": "Github reviews in your system taskbar", | ||
"macOS": { | ||
"entitlements": null, | ||
"exceptionDomain": "", | ||
"frameworks": [], | ||
"providerShortName": null, | ||
"signingIdentity": null | ||
}, | ||
"resources": [], | ||
"shortDescription": "", | ||
"targets": "all", | ||
"windows": { | ||
"certificateThumbprint": null, | ||
"digestAlgorithm": "sha256", | ||
"timestampUrl": "" | ||
} | ||
}, | ||
"security": { | ||
"csp": null | ||
}, | ||
"updater": { | ||
"active": true, | ||
"endpoints": ["https://gitbar-update-server.vercel.app/update/{{target}}/{{current_version}}"], | ||
"dialog": true, | ||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEYxMTYzNDYzNzU1QzYxQkIKUldTN1lWeDFZelFXOFJBZlp3OFZYWFZvK2c3RU5xSGZwVE45ciswWGpwRUdTRXBJbzFnMmRZZlgK" | ||
}, | ||
"systemTray": { | ||
"iconPath": "icons/tray.png", | ||
"iconAsTemplate": true, | ||
"menuOnLeftClick": false | ||
}, | ||
"windows": [ | ||
{ | ||
"fullscreen": false, | ||
"height": 400, | ||
"resizable": false, | ||
"title": "GitBar", | ||
"width": 500, | ||
"visible": false, | ||
"skipTaskbar": true, | ||
"titleBarStyle": "Overlay", | ||
"decorations": true | ||
} | ||
] | ||
} | ||
"security": { | ||
"csp": null | ||
}, | ||
"updater": { | ||
"active": true, | ||
"endpoints": ["https://gitbar-update-server.vercel.app/update/{{target}}/{{current_version}}"], | ||
"dialog": true, | ||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEYxMTYzNDYzNzU1QzYxQkIKUldTN1lWeDFZelFXOFJBZlp3OFZYWFZvK2c3RU5xSGZwVE45ciswWGpwRUdTRXBJbzFnMmRZZlgK" | ||
}, | ||
"systemTray": { | ||
"iconPath": "icons/tray.png", | ||
"iconAsTemplate": true, | ||
"menuOnLeftClick": false | ||
}, | ||
"windows": [ | ||
{ | ||
"fullscreen": false, | ||
"height": 400, | ||
"resizable": false, | ||
"title": "GitBar", | ||
"width": 500, | ||
"visible": false, | ||
"skipTaskbar": true, | ||
"titleBarStyle": "Overlay", | ||
"decorations": true | ||
} | ||
] | ||
} | ||
} |