@choochmeque/tauri-apple-extensions 0.2.1 → 0.2.3
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 +5 -2
- package/dist/index.js +1 -1
- package/package.json +1 -2
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'module';
|
|
2
3
|
import { Command } from 'commander';
|
|
3
4
|
import fs from 'fs';
|
|
4
5
|
import path from 'path';
|
|
@@ -403,7 +404,7 @@ const shareExtension = {
|
|
|
403
404
|
base:
|
|
404
405
|
PRODUCT_BUNDLE_IDENTIFIER: ${extensionBundleId}
|
|
405
406
|
SKIP_INSTALL: YES
|
|
406
|
-
CODE_SIGN_ENTITLEMENTS: ShareExtension/ShareExtension.entitlements
|
|
407
|
+
CODE_SIGN_ENTITLEMENTS: ShareExtension/ShareExtension.entitlements${platform === "macos" ? "\n CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION: YES" : ""}
|
|
407
408
|
`;
|
|
408
409
|
// Add the target
|
|
409
410
|
let modified = addExtensionTarget(projectYml, {
|
|
@@ -541,11 +542,13 @@ async function addExtension(type, options) {
|
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
|
|
545
|
+
const require$1 = createRequire(import.meta.url);
|
|
546
|
+
const { version } = require$1("../package.json");
|
|
544
547
|
const program = new Command();
|
|
545
548
|
program
|
|
546
549
|
.name("tauri-apple-extensions")
|
|
547
550
|
.description("Add Apple extensions to Tauri apps")
|
|
548
|
-
.version(
|
|
551
|
+
.version(version);
|
|
549
552
|
function createPlatformCommand(platform) {
|
|
550
553
|
const cmd = new Command(platform);
|
|
551
554
|
cmd.description(`Manage ${platform === "ios" ? "iOS" : "macOS"} extensions`);
|
package/dist/index.js
CHANGED
|
@@ -401,7 +401,7 @@ const shareExtension = {
|
|
|
401
401
|
base:
|
|
402
402
|
PRODUCT_BUNDLE_IDENTIFIER: ${extensionBundleId}
|
|
403
403
|
SKIP_INSTALL: YES
|
|
404
|
-
CODE_SIGN_ENTITLEMENTS: ShareExtension/ShareExtension.entitlements
|
|
404
|
+
CODE_SIGN_ENTITLEMENTS: ShareExtension/ShareExtension.entitlements${platform === "macos" ? "\n CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION: YES" : ""}
|
|
405
405
|
`;
|
|
406
406
|
// Add the target
|
|
407
407
|
let modified = addExtensionTarget(projectYml, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choochmeque/tauri-apple-extensions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Add iOS and macOS extensions to Tauri apps with a single command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
39
|
-
"@rollup/plugin-replace": "^6.0.3",
|
|
40
39
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
41
40
|
"@types/node": "^25.0.3",
|
|
42
41
|
"@vitest/coverage-v8": "^4.0.16",
|