@stacksjs/browser-extension 0.70.140 → 0.70.141

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.
Files changed (2) hide show
  1. package/dist/safari.js +3 -1
  2. package/package.json +1 -1
package/dist/safari.js CHANGED
@@ -41,6 +41,8 @@ function safariResourceCopyBuildPhase(appName) {
41
41
  `;
42
42
  }
43
43
  export function migrateSafariResourceBuildPhase(project, appName) {
44
+ if (project.includes("resources_prefix='$(SRCROOT)"))
45
+ return project.replace(/\/\* Begin PBXShellScriptBuildPhase section \*\/[\s\S]*?\/\* End PBXShellScriptBuildPhase section \*\/\n/, safariResourceCopyBuildPhase(appName));
44
46
  if (project.includes("SCRIPT_INPUT_FILE_LIST_0"))
45
47
  return project;
46
48
  if (project.includes("0D0000000000000000000023 /* Copy Web Extension Resources */"))
@@ -151,7 +153,7 @@ export async function syncSafariResources(config, options = {}) {
151
153
  synced.push(rel);
152
154
  files += 1;
153
155
  }
154
- const inputs = synced.map((rel) => join(resources, rel)).join(`
156
+ const inputs = synced.map((rel) => `$(SRCROOT)/${appName} Extension/Resources/${rel}`).join(`
155
157
  `), outputs = synced.map((rel) => `$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/${rel}`).join(`
156
158
  `);
157
159
  await Bun.write(join(projectDir, `${appName} Extension`, "Resources.inputs.xcfilelist"), `${inputs}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/browser-extension",
3
3
  "type": "module",
4
- "version": "0.70.140",
4
+ "version": "0.70.141",
5
5
  "description": "Build MV3 browser extensions (Chrome, Firefox, Safari) the Stacks way — manifest, content/background scripts, DNR rules, packaging, Safari container app, all config-driven.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [