Skip to content

Commit

Permalink
feat: update release script to build for m1 macs (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhu2000 authored Jan 13, 2023
1 parent ec8096c commit 3ee0596
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
# this script should be replaces by github actions

npm version patch
yarn tauri build
yarn tauri build --target aarch64-apple-darwin
yarn tauri build --target x86_64-apple-darwin
version=$(grep version package.json | awk -F \" '{print $4}')

echo "releasing version: $version"
gh release create $version "src-tauri/target/release/bundle/dmg/Kube Knots_${version}_x64.dmg" --generate-notes
gh release create $version \
"src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/kube-knots_${version}_x64.dmg" \
"src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/kube-knots_${version}_aarch64.dmgg" \
--generate-notes
11 changes: 11 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["api-all"] }
kube = { version = "0.78.0", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.17.0", features = ["v1_26"] }
openssl = { version = "0.10.35", features = ["vendored"] }

[features]
# by default Tauri runs in production mode
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"distDir": "../dist"
},
"package": {
"productName": "Kube Knots",
"productName": "kube-knots",
"version": "../package.json"
},
"tauri": {
Expand Down

0 comments on commit 3ee0596

Please sign in to comment.