Skip to content

Commit

Permalink
Try to add full embed installer (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Aug 4, 2024
1 parent f388e5d commit 533a128
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 7 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
- name: Yarn install FE dependencies
run: yarn --prefer-offline --frozen-lockfile --network-timeout 1000000 install

- name: Build it
run: yarn build
- uses: tauri-apps/tauri-action@v0
- name: "Build and release the app"
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
Expand All @@ -49,3 +48,21 @@ jobs:
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false


- name: "Full Bundle Tauri Release"
run: mv ./src-tauri/full-bundle-tauri.conf.json ./src-tauri/tauri.conf.json

- name: "Build and release the app"
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
includeUpdaterJson: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "coh3-stats-desktop-app",
"private": true,
"version": "1.5.1",
"version": "1.5.2",
"type": "module",
"repository": {
"url": "https://github.com/cohstats/coh3-stats-desktop-app"
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 = "coh3-stats-desktop-app"
version = "1.5.1"
version = "1.5.2"
description = "COH3 Stats Desktop App"
authors = ["coh3stats team"]
license = ""
Expand Down
101 changes: 101 additions & 0 deletions src-tauri/full-bundle-tauri.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"build": {
"beforeDevCommand": "yarn dev",
"beforeBuildCommand": "yarn build",
"devPath": "http://localhost:1420",
"distDir": "../dist"
},
"package": {
"productName": "Coh3 Stats Desktop App - full bundle",
"version": "../package.json"
},
"tauri": {
"allowlist": {
"clipboard": {
"writeText": true
},
"dialog": {
"all": true
},
"fs": {
"all": true,
"scope": ["$APPDATA/*"]
},
"http": {
"all": true,
"scope": ["https://coh3-api.reliclink.com/*", "https://api.steampowered.com/*", "https://coh3stats.com/*"]
},
"path": {
"all": true
},
"shell": {
"open": true
},
"window": {
"all": true
},
"process": {
"all": 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.coh3stats.desktop",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": ["msi", "updater"],
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": "",
"webviewInstallMode": {
"type": "offlineInstaller"
}
}
},
"security": {
"csp": null
},
"updater": {
"active": true,
"endpoints": ["https://coh3stats.com/api/appUpdateRoute"],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IERFNjMzQTcwRjBEQjUwNTUKUldSVlVOdndjRHBqM21pc1BGYndieG03VVZOSGhxdUxPeDNkRkFqaXVpcEMyL2l1WUN6VDNCK1kK"
},
"windows": [
{
"label": "main",
"fullscreen": false,
"resizable": true,
"focus": true,
"title": "COH3 Stats Desktop App",
"width": 1000,
"minWidth": 900,
"height": 600,
"minHeight": 200,
"decorations": false
}
]
}
}
7 changes: 5 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "Coh3 Stats Desktop App",
"version": "1.5.1"
"version": "../package.json"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -68,7 +68,10 @@
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
"timestampUrl": "",
"webviewInstallMode": {
"type": "embedBootstrapper"
}
}
},
"security": {
Expand Down

0 comments on commit 533a128

Please sign in to comment.