PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.59k stars 369 forks source link

[BUG] Mozilla Firefox rejects publishing due to lack of identically reproducible builds #1020

Open synim-sogody opened 4 months ago

synim-sogody commented 4 months ago

What happened?

According to https://extensionworkshop.com/documentation/publish/source-code-submission/, the new policy requires the build to be an exact match of the submitted add-on including all contents of the files, like variable names.

Using --no-minify --no-hoist you get more consistent builds, but obfuscated variable names still change, which is making submitting to Firefox using Plasmo impossible.

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

Firefox

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct

027xiguapi commented 2 months ago

May I ask if the problem has been resolved? I also have the same problem. 1724982928615

synim-sogody commented 2 months ago

May I ask if the problem has been resolved? I also have the same problem. 1724982928615

You can use this plasmo build --no-minify --no-hoist --zip --target=firefox-mv2, sometimes the build from this goes through.

Sameedahmad commented 1 month ago

plasmo build --no-minify --no-hoist --zip --target=firefox-mv2

Wow, this worked for me, thanks :)