Developing release scripts for windows Tauri

This commit is contained in:
Igor Katson 2023-12-02 22:56:01 +00:00
parent a0fd71dd20
commit 724691bfc2
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 46 additions and 10 deletions

View file

@ -13,6 +13,22 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install Tauri
run:
cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run:
npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run:
npm install
- name: cargo tauri build
working-directory: desktop
run:
cargo tauri build --ci
- name: Build release - name: Build release
run: run:
cargo build --profile release-github cargo build --profile release-github
@ -21,6 +37,8 @@ jobs:
body: This release and its artifacts were built with a GitHub action body: This release and its artifacts were built with a GitHub action
files: | files: |
target/release-github/rqbit.exe target/release-github/rqbit.exe
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_1.0.0_x64_en-US.msi
desktop/src-tauri/target/release/bundle/nsis/rqbit-desktop_1.0.0_x64-setup.exe
cross-compile-on-macos: cross-compile-on-macos:
runs-on: macos-11 runs-on: macos-11
@ -31,6 +49,23 @@ jobs:
brew tap messense/macos-cross-toolchains && brew tap messense/macos-cross-toolchains &&
brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf
- name: install Tauri
run:
cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run:
npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run:
npm install
- name: cargo tauri build
working-directory: desktop
run:
rustup target add aarch64-apple-darwin &&
cargo tauri build --target universal-apple-darwin --ci
- name: Make a directory for output artifacts - name: Make a directory for output artifacts
run: run:
mkdir -p target/artifacts mkdir -p target/artifacts
@ -75,4 +110,5 @@ jobs:
target/artifacts/rqbit-linux-static-aarch64 target/artifacts/rqbit-linux-static-aarch64
target/artifacts/rqbit-linux-static-armv6 target/artifacts/rqbit-linux-static-armv6
target/artifacts/rqbit-linux-static-armv7 target/artifacts/rqbit-linux-static-armv7
desktop/src-tauri/target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_1.0.0_universal.dmg

View file

@ -1,7 +1,7 @@
{ {
"name": "rqbit", "name": "rqbit",
"private": true, "private": true,
"version": "0.0.0", "version": "4.0.0-beta.3",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@ -23,4 +23,4 @@
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vite": "^4.4.4" "vite": "^4.4.4"
} }
} }

View file

@ -1856,7 +1856,7 @@ dependencies = [
[[package]] [[package]]
name = "librqbit" name = "librqbit"
version = "4.0.0-beta.2" version = "4.0.0-beta.3"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"axum", "axum",
@ -1920,7 +1920,7 @@ version = "2.2.1"
[[package]] [[package]]
name = "librqbit-core" name = "librqbit-core"
version = "3.1.0" version = "3.2.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"directories", "directories",
@ -1939,7 +1939,7 @@ dependencies = [
[[package]] [[package]]
name = "librqbit-dht" name = "librqbit-dht"
version = "4.0.0-beta.2" version = "4.0.0-beta.3"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"backoff", "backoff",
@ -1963,7 +1963,7 @@ dependencies = [
[[package]] [[package]]
name = "librqbit-peer-protocol" name = "librqbit-peer-protocol"
version = "3.1.0" version = "3.2.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bincode", "bincode",
@ -2967,7 +2967,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "rqbit" name = "rqbit-desktop"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",

View file

@ -1,5 +1,5 @@
[package] [package]
name = "rqbit" name = "rqbit-desktop"
version = "0.0.0" version = "0.0.0"
description = "A Tauri App" description = "A Tauri App"
authors = ["you"] authors = ["you"]

View file

@ -6,8 +6,8 @@
"distDir": "../dist" "distDir": "../dist"
}, },
"package": { "package": {
"productName": "rqbit", "productName": "rqbit-desktop",
"version": "4.0.0-beta.3" "version": "1.0.0"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {