-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
platform: Windowspriority: 2 mediumE.g. DX regressions, bugs, dev crashes, etc...E.g. DX regressions, bugs, dev crashes, etc...scope: bundlerThe bundler used in our cli to make installersThe bundler used in our cli to make installerstype: bug
Description
Describe the bug
Building installer on Windows with Wix options (license, template) specified failed if the user never called the build before.
To Reproduce
Steps to reproduce the behavior:
- Run
yarn create tauri-app. - Select the vanilla template and leave everything simple
- Open the tauri-app generated
- Create a
LICENSEfile - Link that
LICENSEfile by addinglicensekey intotauri.bundle.windows.wixofsrc-tauri/tauri.conf.jsonwith the value of../LICENSE - Run build
- See the error
Now to fix that:
- Remove the
licensesection - Run build
- Add back the
licensesection - Now it's ok
Expected behavior
It works fine even on the first call, cuz when calling the build via workflow, it will all fail (unless trick it by running prebuild and postbuild)
Screenshots
Platform and Versions (required):
Operating System - Windows, version 10.0.22000 X64
Webview2 - 95.0.1020.53
Node.js environment
Node.js - 16.0.0
@tauri-apps/cli - 1.0.0-beta.10
@tauri-apps/api - Not installed
Global packages
npm - 7.10.0
yarn - 1.22.11
Rust environment
rustc - 1.56.0
cargo - 1.56.0
App directory structure
/dist
/node_modules
/src-tauri
App
tauri.rs - 1.0.0-beta.8
build-type - bundle
CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - ../dist
devPath - ../dist
build-type
CSP
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
platform: Windowspriority: 2 mediumE.g. DX regressions, bugs, dev crashes, etc...E.g. DX regressions, bugs, dev crashes, etc...scope: bundlerThe bundler used in our cli to make installersThe bundler used in our cli to make installerstype: bug
