@choochmeque/tauri-windows-bundle 0.1.4 → 0.1.6
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 +12 -2
- package/dist/index.js +12 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -404,10 +404,20 @@ function generateExtensions(config) {
|
|
|
404
404
|
extensions.push(result.trimEnd());
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
if (extensions.length === 0) {
|
|
408
|
+
return '';
|
|
409
|
+
}
|
|
410
|
+
return ` <Extensions>\n${extensions.join('\n\n')}\n </Extensions>`;
|
|
408
411
|
}
|
|
409
412
|
function generateCapabilities(capabilities) {
|
|
410
|
-
|
|
413
|
+
const caps = [];
|
|
414
|
+
// runFullTrust is always required for Tauri apps using Windows.FullTrustApplication
|
|
415
|
+
caps.push(' <rescap:Capability Name="runFullTrust" />');
|
|
416
|
+
// Add user-specified capabilities
|
|
417
|
+
for (const cap of capabilities) {
|
|
418
|
+
caps.push(` <Capability Name="${cap}" />`);
|
|
419
|
+
}
|
|
420
|
+
return caps.join('\n');
|
|
411
421
|
}
|
|
412
422
|
function generateClsid(seed) {
|
|
413
423
|
// Generate a deterministic GUID-like string from the seed
|
package/dist/index.js
CHANGED
|
@@ -402,10 +402,20 @@ function generateExtensions(config) {
|
|
|
402
402
|
extensions.push(result.trimEnd());
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
if (extensions.length === 0) {
|
|
406
|
+
return '';
|
|
407
|
+
}
|
|
408
|
+
return ` <Extensions>\n${extensions.join('\n\n')}\n </Extensions>`;
|
|
406
409
|
}
|
|
407
410
|
function generateCapabilities(capabilities) {
|
|
408
|
-
|
|
411
|
+
const caps = [];
|
|
412
|
+
// runFullTrust is always required for Tauri apps using Windows.FullTrustApplication
|
|
413
|
+
caps.push(' <rescap:Capability Name="runFullTrust" />');
|
|
414
|
+
// Add user-specified capabilities
|
|
415
|
+
for (const cap of capabilities) {
|
|
416
|
+
caps.push(` <Capability Name="${cap}" />`);
|
|
417
|
+
}
|
|
418
|
+
return caps.join('\n');
|
|
409
419
|
}
|
|
410
420
|
function generateClsid(seed) {
|
|
411
421
|
// Generate a deterministic GUID-like string from the seed
|