MozillaZine

omni.ja and optimizejars.py . . .

Discuss building things with or for the Mozilla Platform.
AlbertG
 
Posts: 57
Joined: April 12th, 2006, 2:44 pm

Post Posted July 17th, 2020, 1:33 pm

Had the crazy idea to go in and dig about inside omni.ja; and found this old page dealing with the topic: https://www.raymond.cc/blog/edit-files- ... -password/

There, he provided a download link to a 2010 release of the file, originally found here: https://hg.mozilla.org/mozilla-central/ ... izejars.py

I subsequently found and grabbed the source for this newer one, instead: https://hg.mozilla.org/mozilla-central/ ... izejars.py

With the saved file, I attempted to run:
Code: Select all
python optimizejars.py --deoptimize ./ ./ ./  /tmp/omni.ja

...and got:
Usage: --optimize|--deoptimize optimizejars.py JAR_LOG_DIR IN_JAR_DIR OUT_JAR_DIR


Nothing happened to the archive.

Is there a later release of the tool, or is there any way to get this copy of "optimizejars" to work with the current omni files?

FF ESR 68.10

Thanks :)

morat
 
Posts: 3838
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 26th, 2020, 8:00 pm

The newer optimizejars.py file is the same optimizejars.py file I'm using in Windows 7 32-bit command prompt.

I'm using the portable build so the omni.ja path is (1) and (2).

1. C:\FirefoxPortable\App\Firefox\omni.ja
2. C:\FirefoxPortable\App\Firefox\browser\omni.ja

Code: Select all
md "C:\Firefox omni 78.0.2 portable"
optimizejars.py --deoptimize "C:\Firefox omni 78.0.2 portable" "C:\FirefoxPortable\App\Firefox\browser" "C:\Firefox omni 78.0.2 portable"
optimizejars.py --deoptimize "C:\Firefox omni 78.0.2 portable" "C:\FirefoxPortable\App\Firefox"         "C:\Firefox omni 78.0.2 portable"

FF ESR 68
http://searchfox.org/mozilla-esr68/source
http://searchfox.org/mozilla-esr68/source/browser/config/version.txt

FF RELEASE
http://searchfox.org/mozilla-release/source
http://searchfox.org/mozilla-release/source/browser/config/version.txt

AlbertG
 
Posts: 57
Joined: April 12th, 2006, 2:44 pm

Post Posted July 28th, 2020, 8:33 am

Thanks again, morat, for the links and the help.

Looks like it's just a commandline syntax issue on this end ;)

Have a great week!

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 3 guests