@choochmeque/tauri-windows-bundle 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -483,8 +483,9 @@ function updatePackageJson(projectRoot) {
|
|
|
483
483
|
|
|
484
484
|
function prepareAppxContent(projectRoot, arch, config, tauriConfig, minVersion) {
|
|
485
485
|
const target = arch === 'x64' ? 'x86_64-pc-windows-msvc' : 'aarch64-pc-windows-msvc';
|
|
486
|
-
const
|
|
487
|
-
const
|
|
486
|
+
const srcTauriDir = path.join(projectRoot, 'src-tauri');
|
|
487
|
+
const buildDir = path.join(srcTauriDir, 'target', target, 'release');
|
|
488
|
+
const appxDir = path.join(srcTauriDir, 'target', 'appx', arch);
|
|
488
489
|
// Create directories
|
|
489
490
|
fs.mkdirSync(path.join(appxDir, 'Assets'), { recursive: true });
|
|
490
491
|
// Copy exe
|
|
@@ -768,7 +769,7 @@ async function build(options) {
|
|
|
768
769
|
}
|
|
769
770
|
// Call msixbundle-cli
|
|
770
771
|
console.log('\nCreating MSIX package...');
|
|
771
|
-
const outDir = path.join(projectRoot, 'target', 'msix');
|
|
772
|
+
const outDir = path.join(projectRoot, 'src-tauri', 'target', 'msix');
|
|
772
773
|
const args = [
|
|
773
774
|
'--out-dir',
|
|
774
775
|
outDir,
|
package/dist/index.js
CHANGED
|
@@ -481,8 +481,9 @@ function updatePackageJson(projectRoot) {
|
|
|
481
481
|
|
|
482
482
|
function prepareAppxContent(projectRoot, arch, config, tauriConfig, minVersion) {
|
|
483
483
|
const target = arch === 'x64' ? 'x86_64-pc-windows-msvc' : 'aarch64-pc-windows-msvc';
|
|
484
|
-
const
|
|
485
|
-
const
|
|
484
|
+
const srcTauriDir = path.join(projectRoot, 'src-tauri');
|
|
485
|
+
const buildDir = path.join(srcTauriDir, 'target', target, 'release');
|
|
486
|
+
const appxDir = path.join(srcTauriDir, 'target', 'appx', arch);
|
|
486
487
|
// Create directories
|
|
487
488
|
fs.mkdirSync(path.join(appxDir, 'Assets'), { recursive: true });
|
|
488
489
|
// Copy exe
|
|
@@ -766,7 +767,7 @@ async function build(options) {
|
|
|
766
767
|
}
|
|
767
768
|
// Call msixbundle-cli
|
|
768
769
|
console.log('\nCreating MSIX package...');
|
|
769
|
-
const outDir = path.join(projectRoot, 'target', 'msix');
|
|
770
|
+
const outDir = path.join(projectRoot, 'src-tauri', 'target', 'msix');
|
|
770
771
|
const args = [
|
|
771
772
|
'--out-dir',
|
|
772
773
|
outDir,
|