Skip to content

Commit

Permalink
Merge pull request #38 from VSCodeConfigHelper/wix-patch
Browse files Browse the repository at this point in the history
Windows: WiX now add vscch.exe to PATH
  • Loading branch information
guyutongxue authored Mar 6, 2024
2 parents 8f3cfbf + 6168afb commit 0d30a3a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
sudo apt update
sudo apt install -y libwebkit2gtk-4.0-dev libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev
- run: pnpm install
- run: pnpm tauri build
- run: pnpm tauri build --verbose
- uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} executable
Expand Down
11 changes: 11 additions & 0 deletions src-tauri/add_to_path.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Component Id="AddToPath" Guid="75db7be5-406d-4b45-a545-455d6467887d">
<Environment Id="AddToPathEnv" Name="PATH" Value="[INSTALLDIR]" Action="set" Part="last"
System="yes" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>
2 changes: 2 additions & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"digestAlgorithm": "sha256",
"timestampUrl": "",
"wix": {
"fragmentPaths": ["./add_to_path.wxs"],
"componentRefs": ["AddToPath"],
"language": "zh-CN",
"license": "../LICENSE"
}
Expand Down

0 comments on commit 0d30a3a

Please sign in to comment.