-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "refactor<chore>: remove build workflow workaround as it's bee…
…n fixed on Tauri" This reverts commit b7db463.
- Loading branch information
1 parent
543c360
commit 24501a4
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)); | ||
} |
24501a4
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: