Skip to content

Commit

Permalink
enh(msix): add slu-service to msix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Dec 20, 2024
1 parent cbe3d7b commit 76aeeeb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions scripts/bundle.msix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void async function main() {

// Set app version
fs.appendFileSync(msixCmdsPath, `setIdentity --packageVersion ${packageVersion}\n`);

// Add main binary
fs.appendFileSync(
msixCmdsPath,
Expand All @@ -53,6 +54,15 @@ void async function main() {
)}"\n`,
);

// Add crash service
fs.appendFileSync(
msixCmdsPath,
`addFile --target "slu-service.exe" --source "${path.resolve(
`target/${target}/slu-service.exe`,
)}"\n`,
);

// Add resources
tauriConfig.bundle.resources.forEach((pattern) => {
let files = glob.sync(pattern, { nodir: true });
files.forEach((file) => {
Expand Down
2 changes: 1 addition & 1 deletion src/background/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn setup(app: &mut tauri::App<tauri::Wry>) -> Result<()> {
print_initial_information();
validate_webview_runtime_is_installed(app.handle())?;

if !tauri::is_dev() && !is_running_as_appx_package() {
if !tauri::is_dev() {
start_slu_service(app)?;
}

Expand Down

0 comments on commit 76aeeeb

Please sign in to comment.