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
steps:
- 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
run:
cargo build --profile release-github
@ -21,6 +37,8 @@ jobs:
body: This release and its artifacts were built with a GitHub action
files: |
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:
runs-on: macos-11
@ -31,6 +49,23 @@ jobs:
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
- 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
run:
mkdir -p target/artifacts
@ -75,4 +110,5 @@ jobs:
target/artifacts/rqbit-linux-static-aarch64
target/artifacts/rqbit-linux-static-armv6
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",
"private": true,
"version": "0.0.0",
"version": "4.0.0-beta.3",
"type": "module",
"scripts": {
"dev": "vite",
@ -23,4 +23,4 @@
"typescript": "^5.0.2",
"vite": "^4.4.4"
}
}
}

View file

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

View file

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

View file

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