fix scripts/build-release.py & bugs

This commit is contained in:
hosted-fornet 2024-02-01 21:17:46 -08:00
parent 3b2e048e76
commit 47ed7f58df
21 changed files with 5 additions and 6 deletions

3
.gitignore vendored
View File

@ -2,6 +2,7 @@ target/
wit/
**/target/
**/wit/
**/*.wasm
.vscode
.app-signing
.DS_Store
@ -11,8 +12,6 @@ wit/
/home
packages/**/pkg/*.wasm
packages/**/wit
target.wasm
world
.env
kinode/src/bootstrapped_processes.rs
kinode/packages/**/wasi_snapshot_preview1.wasm

1
Cargo.lock generated
View File

@ -3312,6 +3312,7 @@ dependencies = [
[[package]]
name = "kit"
version = "0.1.0"
source = "git+https://github.com/kinode-dao/kit?rev=a4fc76d#a4fc76db7e09b23e4532b8261d82677c76837f3d"
dependencies = [
"anyhow",
"base64 0.21.4",

View File

@ -14,8 +14,7 @@ path = "src/main.rs"
[build-dependencies]
anyhow = "1.0.71"
kit = { path = "../../kit" }
#kit = { git = "https://github.com/kinode-dao/kit", rev = "b8f7323" }
kit = { git = "https://github.com/kinode-dao/kit", rev = "a4fc76d" }
reqwest = { version = "0.11.22", features = ["blocking"] }
sha2 = "0.10"
tokio = { version = "1.28", features = ["macros"] }

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -31,10 +31,10 @@ def build_and_move(feature, tmp_dir, architecture, os_name):
release_env["CARGO_PROFILE_RELEASE_CODEGEN_UNITS"] = f"1"
release_env["CARGO_PROFILE_RELEASE_STRIP"] = f"symbols"
if feature:
subprocess.run(["cargo", "+nightly", "build", "--release", "--features", feature], check=True, env=release_env)
subprocess.run(["cargo", "+nightly", "build", "--release", "-p", "kinode", "--features", feature], check=True, env=release_env)
zip_name = f"{zip_prefix}-{feature}.zip"
else:
subprocess.run(["cargo", "+nightly", "build", "--release"], check=True, env=release_env)
subprocess.run(["cargo", "+nightly", "build", "--release", "-p", "kinode"], check=True, env=release_env)
zip_name = f"{zip_prefix}.zip"
# Move and rename the binary