Skip to content

Commit 832725d

Browse files
committed
Set wix path
1 parent a89bca2 commit 832725d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/release-rust.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,14 @@ jobs:
165165

166166
- name: Create wix installer
167167
run: |
168-
export CARGO_HOME=`pwd`
168+
echo WIX PATH $env:WIX_PATH
169+
((Get-Content -path Cargo.toml -Raw) -replace 'version = "0.1.0"','version = "${{ github.event.inputs.packageVersion }}"') | Set-Content -Path Cargo.toml
170+
169171
cargo install cargo-wix
170-
cargo wix -b "C:\Program Files (x86)\WiX Toolset v3.11\bin"
171-
ls -la
172-
ls -la ./target/wix
173-
ls -la "C:\Program Files (x86)\WiX Toolset v3.11\bin"
174-
shell: bash
172+
cargo wix -b $env:WIX_PATH
173+
env:
174+
WIX_PATH: ${{ env.wix }}\bin
175+
175176

176177
- name: Upload Artifact
177178
uses: actions/upload-artifact@v2

native/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "okapi"
3-
version = "0.1.0"
3+
version = "1.2.0"
44
authors = ["Tomislav Markovski <[email protected]>"]
55
edition = "2018"
66
# ensure this is not checked in as "true" as it will
@@ -58,3 +58,4 @@ assets = [
5858
["target/release/libokapi.a", "usr/local/lib/", "644"],
5959
["../include/okapi.h", "usr/local/include/", "644"],
6060
]
61+

0 commit comments

Comments
 (0)