Skip to content

Commit

Permalink
build: patch tauri with its git repo to include unreleased fix for ta…
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Oct 12, 2024
1 parent b9b4b12 commit 1668cd3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ path = "dnas/relay/zomes/integrity/relay"
edition = "2021"
rust-version = "1.74.0"
version = "0.5.0-beta"


[patch.crates-io]
# Patch tauri with unreleased fix for https://github.com/tauri-apps/tauri/issues/11171
tauri = { git = "https://github.com/tauri-apps/tauri.git", rev = "4a2d51a73adc2005701e801c0b7a41ca2e135f8b" }
tauri-build = { git = "https://github.com/tauri-apps/tauri.git", rev = "4a2d51a73adc2005701e801c0b7a41ca2e135f8b" }
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
"build:zomes": "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown --workspace --exclude volla_messages",
"local-services": "hc run-local-services --bootstrap-interface $INTERNAL_IP --bootstrap-port $BOOTSTRAP_PORT --signal-interfaces $INTERNAL_IP --signal-port $SIGNAL_PORT",
"network:android": "npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri dev\" \"npm run tauri android dev\"",
"start:android": "npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri android dev\"",
"network:android": "npm run build:happ && TAURI_ANDROID_PACKAGE_UNESCAPED='com.volla.messages' BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri android dev\" \"npm run tauri dev\"",
"start:android": "npm run build:happ && TAURI_ANDROID_PACKAGE_UNESCAPED='com.volla.messages' BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri android dev\"",
"launch": "concurrently-repeat \"npm run tauri dev\" $AGENTS",
"tauri": "tauri"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open class BuildTask : DefaultTask() {

@TaskAction
fun assemble() {
val executable = """pnpm""";
val executable = """npm""";
try {
runTauriCli(executable)
} catch (e: Exception) {
Expand All @@ -32,7 +32,7 @@ open class BuildTask : DefaultTask() {
val rootDirRel = rootDirRel ?: throw GradleException("rootDirRel cannot be null")
val target = target ?: throw GradleException("target cannot be null")
val release = release ?: throw GradleException("release cannot be null")
val args = listOf("tauri", "android", "android-studio-script");
val args = listOf("run", "--", "tauri", "android", "android-studio-script");

project.exec {
workingDir(File(project.projectDir, rootDirRel))
Expand Down

0 comments on commit 1668cd3

Please sign in to comment.