Skip to content

Commit 9faea1b

Browse files
committed
Set wix path
1 parent a89bca2 commit 9faea1b

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release-rust.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
body: "Okapi Library Source"
5353

5454
deb:
55-
name: Make Debian Package
55+
name: Debian Package
5656
runs-on: ubuntu-latest
5757
# strategy:
5858
# matrix:
@@ -165,13 +165,12 @@ jobs:
165165

166166
- name: Create wix installer
167167
run: |
168-
export CARGO_HOME=`pwd`
168+
$env:CARGO_HOME=$PWD
169+
170+
([Regex]'version = "0.1.0"').Replace((Get-Content -path Cargo.toml -Raw), 'version = "${{ github.event.inputs.packageVersion }}"', 1) | Set-Content -Path Cargo.toml
171+
169172
cargo install cargo-wix
170173
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
175174
176175
- name: Upload Artifact
177176
uses: actions/upload-artifact@v2

native/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ assets = [
5858
["target/release/libokapi.a", "usr/local/lib/", "644"],
5959
["../include/okapi.h", "usr/local/include/", "644"],
6060
]
61+
62+

0 commit comments

Comments
 (0)