Skip to content

Commit c9c01c9

Browse files
🐛 fix developer extension packaging (#4024)
Since the wxt migration, the developer extension build is using subfolders ('chunks/', 'assets/'). The way we used zip removed those subfolders entirely, so some file failed to load.
1 parent 807d176 commit c9c01c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/deploy/publish-developer-extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fs from 'node:fs'
2+
import path from 'node:path'
23
import chromeWebstoreUpload from 'chrome-webstore-upload'
34
import { printLog, runMain } from '../lib/executionUtils.ts'
45
import { command } from '../lib/command.ts'
@@ -15,7 +16,8 @@ runMain(async () => {
1516
command`yarn build`.withEnvironment({ BUILD_MODE: 'release' }).run()
1617

1718
printLog('Zipping extension files')
18-
command`zip -jr ${ZIP_FILE_NAME} developer-extension/.output/chrome-mv3`.run()
19+
const zipPath = path.resolve(ZIP_FILE_NAME)
20+
command`zip -r ${zipPath} .`.withCurrentWorkingDirectory('developer-extension/.output/chrome-mv3').run()
1921

2022
printLog('Publish Developer extension')
2123
await uploadAndPublish()

0 commit comments

Comments
 (0)