browser-extension-manager 1.3.10 → 1.3.12
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/background.js +1 -1
- package/dist/gulp/tasks/publish.js +6 -0
- package/package.json +1 -1
package/dist/background.js
CHANGED
|
@@ -494,7 +494,7 @@ function setupGlobalHandlers() {
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
// Open the installed page
|
|
497
|
-
const installedUrl =
|
|
497
|
+
const installedUrl = `${website}/extension/installed`;
|
|
498
498
|
console.log('[INSTALL] Opening install page:', installedUrl);
|
|
499
499
|
|
|
500
500
|
extension.tabs.create({ url: installedUrl });
|
|
@@ -281,9 +281,12 @@ async function publishToFirefox() {
|
|
|
281
281
|
|
|
282
282
|
// Use web-ext sign with firefox build
|
|
283
283
|
// --approval-timeout=0 to skip waiting for approval (can take minutes to hours)
|
|
284
|
+
// --artifacts-dir to prevent leaving web-ext-artifacts folder in project root
|
|
285
|
+
const artifactsDir = path.join(process.cwd(), '.temp', 'web-ext-artifacts');
|
|
284
286
|
const command = [
|
|
285
287
|
'npx web-ext sign',
|
|
286
288
|
`--source-dir "${PATHS.firefox.raw}"`,
|
|
289
|
+
`--artifacts-dir "${artifactsDir}"`,
|
|
287
290
|
`--api-key "${apiKey}"`,
|
|
288
291
|
`--api-secret "${apiSecret}"`,
|
|
289
292
|
`--channel "${channel}"`,
|
|
@@ -293,6 +296,9 @@ async function publishToFirefox() {
|
|
|
293
296
|
|
|
294
297
|
await execute(command);
|
|
295
298
|
|
|
299
|
+
// Clean up artifacts dir
|
|
300
|
+
jetpack.remove(artifactsDir);
|
|
301
|
+
|
|
296
302
|
logger.log('[firefox] Upload complete (approval may take time)');
|
|
297
303
|
}
|
|
298
304
|
|