MozillaZine

Packaging the omni.ja

Discussion about official Mozilla Firefox builds
RobertJ
Moderator

User avatar
 
Posts: 10679
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted May 25th, 2013, 12:31 pm

.
I made a tweak in the omni.ja file contents. How do I repackage it using the terminal on OSX?

Thanks

.
FF 63.0.3 - FF 64b9 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

RobertJ
Moderator

User avatar
 
Posts: 10679
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted May 25th, 2013, 1:24 pm

.
More info.

  1. I removed the omni.ja file from the application
  2. Unzipped it by changing "ja" to "zip" and double clicking.
  3. I then rezipped the resulting omni directory without making any changes.
  4. I used the terminal with the command zip -r omni.zip omni
  5. Changed the resulting omni.zip to omni.ja
  6. Placed the "new" omni.ja file into the application
  7. Double clicked and FF crashed.
  8. Placed the "original" omni.ja into the application
  9. Double clicked and all was fine.

Must be something wrong with the way I'm repackaging.

Suggestions?

.
FF 63.0.3 - FF 64b9 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

Ver Greeneyes
 
Posts: 1023
Joined: June 28th, 2008, 4:57 am

Post Posted May 25th, 2013, 1:32 pm

So this doesn't answer your question, but Don't Unpack and Repack omni.ja[r] (check the comments section).

RobertJ
Moderator

User avatar
 
Posts: 10679
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted May 25th, 2013, 1:43 pm

Ver Greeneyes wrote:So this doesn't answer your question, but Don't Unpack and Repack omni.ja[r] (check the comments section).

Thanks. I would still like to know how the directory omni is packaged. Obviously it is not as simple as zipping it and renaming the suffix. I now there are other ways for certain things. This has now become one of those "puzzle" questions where you want to know simply to know.

.
FF 63.0.3 - FF 64b9 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

phuzi0n
 
Posts: 517
Joined: June 23rd, 2010, 5:48 pm

Post Posted May 25th, 2013, 2:06 pm

Found this:

5. Save the file and repack omni.jar. Again, be a careful while you repack. Do not repack “omni” folder, but repack everything inside that folder. Compress it as zip, and then rename omni.zip as omni.jar

Joker1337
 
Posts: 64
Joined: July 15th, 2012, 2:04 pm

Post Posted May 25th, 2013, 2:42 pm

Try:
- rename omni.ja to omni.zip
- open with (in my case) WinZip, inside Application folder
- unzip files which you want to modified
- copy and overwrite modified files back to omni.zip
- rename omni.zip to omni.ja

This method works for me without crashes...

mozian
 
Posts: 152
Joined: April 30th, 2011, 11:30 pm
Location: HK

Post Posted May 25th, 2013, 10:04 pm

1 unzip /path/to/omni.ja -d omni
2 modified files
3 cd omni
4 zip -qr9XD omni.ja *

the-edmeister

User avatar
 
Posts: 32121
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted May 26th, 2013, 1:22 am

Back in the days of Firefox 4, I made the mistake of using compression when closing the omni.ja file after doing some mods. Firefox didn't like that.




.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

RobertJ
Moderator

User avatar
 
Posts: 10679
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted May 26th, 2013, 10:03 am

.
Thanks all. Memorial Day Family thing going on. Will try this Monday and post.


.
FF 63.0.3 - FF 64b9 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

RobertJ
Moderator

User avatar
 
Posts: 10679
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted May 26th, 2013, 1:05 pm

phuzi0n wrote:Found this:

5. Save the file and repack omni.jar. Again, be a careful while you repack. Do not repack “omni” folder, but repack everything inside that folder. Compress it as zip, and then rename omni.zip as omni.jar


That worked perfectly. Embarrassingly I knew that but haven't done in such a long time forgot. :oops:


.
FF 63.0.3 - FF 64b9 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

denishowe
 
Posts: 2
Joined: June 19th, 2008, 2:13 am

Post Posted September 25th, 2018, 7:11 am

Has anyone done this successfully recently? Whenever I rezip omni.ja, Firefox won't start.

FF Dev Edition 63
MacOS High Sierra 10.13.6
UnZip 6.00 of 20 April 2009, by Info-ZIP.
Zip 3.0 (July 5th 2008), by Info-ZIP.

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

Post Posted September 25th, 2018, 7:42 am

@denishowe

Did you deoptimize the omni.ja file? And remember to purge the caches when you start up the application.

deoptimize omni.ja
http://forums.mozillazine.org/viewtopic.php?f=23&t=2752877

Caching
http://developer.mozilla.org/en/Extensions/Updating_extensions_for_Firefox_4#Caching

Here is an alternative to hacking the omni.ja file in some cases.

Firefox Quantum compatible userChrome.js
http://github.com/Sporif/firefox-quantum-userchromejs

johnp_
 
Posts: 145
Joined: March 7th, 2011, 11:22 am

Post Posted September 25th, 2018, 1:19 pm

Per this MDN entry you need to use `zip -qr9XD omni.ja *`.

therube

User avatar
 
Posts: 19162
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted September 25th, 2018, 4:57 pm

(qr9XD might be the "Mozilla" way, but I wouldn't think it would matter if you simply "zip omni.ja * -r".
Hmm. And they're actually using -9, compressing, rather then -0, storing. I guess they know ;-).)

I think you're going to have to copy/paste the link:
Code: Select all
https://developer.mozilla.org/en-US/docs/Mozilla/About_omni.ja_(formerly_omni.jar)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

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

Post Posted September 25th, 2018, 7:31 pm

I successfully hacked the page title in the troubleshooting information aboutSupport.dtd file.

If I skip the deoptimize step, then the browser fails to start correctly.

Firefox Portable 62.0.2
Windows 7 SP1 32-bit

Return to Firefox Builds


Who is online

Users browsing this forum: Bing [Bot] and 3 guests