You are here

Shrink it more...

12 posts / 0 new
Last post
pps
Offline
Last seen: 4 years 1 month ago
Joined: 2006-05-11 03:35
Shrink it more...

...just repack ("classic" ZIP, for example from Total Commander) with maximum pack level this files:

PortableFirefox\App\firefox\chrome\*.jar

You can save 2.6 MB

Greetings

pps

Torpedro
Offline
Last seen: 11 years 1 month ago
Joined: 2006-02-05 14:52
Thx

Thank you for the great idea! 8)
You can also Re-Pack the Extensions Crome\*.jar
This saved me also over 1 MB.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 12 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not allowed

Modifying any of Firefox's files and redistributing it is not permitted by Mozilla's trademark policy. I used to recompress the JARs and UPX the EXEs and DLLs, shrinking Firefox to about 8MB, but that's not allowed now.

Sometimes, the impossible can become possible, if you're awesome!

azjerry
Offline
Last seen: 7 years 1 month ago
Joined: 2005-12-09 12:42
What if we compress ourselves?

While you can't redistribute TB and FF with compressed files, what about providing instructions on what files to compress after we've installed and how?

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 12 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
You can do it yourself

And the instructions are pretty easy. Compress all the EXEs and DLLs with UPX using the following options: --best --compress-icons=0 --nrv2d --crp-ms=999999 -k

And then re-zip all the JAR files to use the highest level of compression. I recommend using 7-zip to do this as it has the best compression. If you're using the 7-zip commandline, use: -r -mx=9 -mpass=4 -mfb=255

Sometimes, the impossible can become possible, if you're awesome!

azjerry
Offline
Last seen: 7 years 1 month ago
Joined: 2005-12-09 12:42
auto update problems?

Thinking back, was there some kind of problem with auto update not working when the files were compressed? If so that may be a good reason to not bother with the compression after all.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 12 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Update Semi-fails

The partial updates that just download the differences will fail. But the full update will work fine. At which point you can UPX-compress it again.

Sometimes, the impossible can become possible, if you're awesome!

stacoma
Offline
Last seen: 18 years 4 weeks ago
Joined: 2006-01-12 00:40
It does interfere...

It does interfere with partial updates of PTB and PFF.

Nevertheless, I chose to UPX the DLL and EXE files (essentially in the FF or TB root and "components" directories) and 7-Zip compress the JAR files (in the FF or TB "chrome" directory) for both and just take a couple minutes to recompress them if there has been an update (not that often) using "UPX Shell," with the special parameters John mentioned.

I generally leave the JAR files in the extensions alone, and I haven't altered anything in the GPG area either...

I don't think JAR files change that often, do they? If they do not, saving a copy of those and just copying those back after an update can save even more time.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 12 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Please stop editing

Every time you edit this post, it shows as new in recent posts... you've done it like 6 times now... and I have to keep reading it.

Knock it off! Biggrin

Sometimes, the impossible can become possible, if you're awesome!

stacoma
Offline
Last seen: 18 years 4 weeks ago
Joined: 2006-01-12 00:40
My bad

Shock

Long day and can't get my thoughts together Beee

On another note, thanks for banning that cretin yesterday that thought you were born just to serve him. Hopefully he doesn't come back under a new name.

We do appreciate what you are doing here.

Bruce Pascoe
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-15 16:14
...

...this is why the forum needs a "mark all posts read"-type feature. I've been saying it for months. It's not really his fault, it's Drupal's.

I'm only standing up for him because I tend to edit posts a lot myself. I can't help it; it's the latent OCD in me.

-
fatcerberus@yahoo.com  [aim: fatcerberus]
I have no witty remarks or quotes to share at the moment.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
He He He...

Don't we all have a little OCD in us Wink
Anyway, stupid Drupal.
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Topic locked