Developer discussion of experimental fixes, changes, and improvements.
Moderators: Nexuiz Moderators, Moderators
-
How do I make a "release" data pk3?
I want to bring the svn data stuff over to a computer with very limited space: it thusly needs to be a pk3 without the .svn stuff (I guess). How do I make such a pk3 to replace the current data pk3 on the computer? Properly
-
tundramagi
- Forum addon
-
- Posts: 974
- Joined: Sun Jan 04, 2009 4:53 pm
-
this is what soulbringer's script does:
- Code: Select all
cd data
compresion=9 # 0 = faster + larger; 9 = slower + smaller
7za a -tzip -mx=${compression} -x\!*.cfg -x\!*.txt -x\!*.sh -x\!*.pl -x\!*.pk3 data$( date +%Y%m%d ).pk3 ./
for D in *
do
if [[ -d "$D" ]]; then rm -rf "$D";fi
done
though the excluding cfg seems odd.
There is also makebuild.sh in misc/tools
-

[-z-]
- Site Admin and Nexuiz Ninja
-
- Posts: 1794
- Joined: Mon Nov 13, 2006 12:20 am
- Location: Florida
-
-
This seems to work well:
7za a -tzip -mx=9 -x\!*.cfg -x\!*.txt -x\!*.sh -x\!*.pl -xr\!*.pk3 -xr\!.svn data.pk3 ./
-
tundramagi
- Forum addon
-
- Posts: 974
- Joined: Sun Jan 04, 2009 4:53 pm
Fri May 29, 2009 10:36 am
-
I use this:
7z a -tzip data.pk3 . -x!common-spog.pk3 -x!qcsrc -xr!.svn
Removing sh and pl files won't make you gain much space obviously, and some .txt files are needed for the game. And .cfg is critical.
Meh.
-

Mr. Bougo
- Keyboard killer
-
- Posts: 760
- Joined: Mon Sep 10, 2007 3:29 pm
-
I forgot to remove the qcsrc. Will that gain much space? Is there a way I can strip it out now that the archive has been made?
-
tundramagi
- Forum addon
-
- Posts: 974
- Joined: Sun Jan 04, 2009 4:53 pm
-
- Code: Select all
mkdir tmp && mv data.pk3 tmp
unzip data.pk3
rm qcsrc
7z a -tzip data.pk3 .
-

[-z-]
- Site Admin and Nexuiz Ninja
-
- Posts: 1794
- Joined: Mon Nov 13, 2006 12:20 am
- Location: Florida
-
-
[-z-] wrote:- Code: Select all
mkdir tmp && mv data.pk3 tmp
unzip data.pk3
rm qcsrc
7z a -tzip data.pk3 .
Re 7ziping takes 4 hours.
-
tundramagi
- Forum addon
-
- Posts: 974
- Joined: Sun Jan 04, 2009 4:53 pm
-
tundramagi wrote:[-z-] wrote:- Code: Select all
mkdir tmp && mv data.pk3 tmp
unzip data.pk3
rm qcsrc
7z a -tzip data.pk3 .
Re 7ziping takes 4 hours.
man 7z
there is a function 'd' in there for delete. gl;hf make a backup and report back.
-

[-z-]
- Site Admin and Nexuiz Ninja
-
- Posts: 1794
- Joined: Mon Nov 13, 2006 12:20 am
- Location: Florida
-
-
There actually is make targets for this too in the Makefile:
make fullpk3 packs everything inside the dir
make $(PK3NAME) first does a svn export, resulting that only files that are in SVN are sent to the new pk3.
Before posting a reply, please read about the
bikeshed
-

merlijn
- Advanced member
-
- Posts: 84
- Joined: Tue Oct 21, 2008 10:18 am
Return to Nexuiz - Development
- Users browsing this forum: No registered users and 1 guest