-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: broken build on windows (tauri-apps/tauri#2927) by tricking it
- Loading branch information
1 parent
c06d96c
commit 78ba08b
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Check if the workflow is run on GitHub Actions | ||
if (process.env.GITHUB_ACTIONS === 'true') { | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const tauriConf = require('../src-tauri/tauri.conf.json'); | ||
const spawn = require('cross-spawn'); | ||
|
||
tauriConf.tauri.bundle.windows.wix = { | ||
template: './installer.wxs', | ||
license: '../LICENSE', | ||
}; | ||
fs.writeFileSync(path.join(__dirname, '../src-tauri/tauri.conf.json'), JSON.stringify(tauriConf, null, 2)); | ||
spawn('tauri', ['build']); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Check if the workflow is run on GitHub Actions | ||
if (process.env.GITHUB_ACTIONS === 'true') { | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const tauriConf = require('../src-tauri/tauri.conf.json'); | ||
delete tauriConf.tauri.bundle.windows['wix']; | ||
fs.writeFileSync(path.join(__dirname, '../src-tauri/tauri.conf.json'), JSON.stringify(tauriConf, null, 2)); | ||
} |
78ba08b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: