Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Activate the vid release.

  • Loading branch information...
commit c4ceb408305e98011a7802f888cd40906c9da444 1 parent 6ca79fb
@dak180 dak180 authored Git SVN Gateway committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  macosx/Warzone.xcodeproj/project.pbxproj
View
2  macosx/Warzone.xcodeproj/project.pbxproj
@@ -3822,7 +3822,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
- shellScript = "# Config\nsimgfl=\"http://downloads.sourceforge.net/project/warzone2100/build-tools/mac/wztemplate.sparseimage\"\nsimgflnme=\"wztemplate.sparseimage\"\nsimgflmd5=\"da10e06f2b9b2b565e70dd8e98deaaad\"\nsequence=\"http://downloads.sourceforge.net/project/warzone2100/warzone2100/Videos/2.2/high-quality-en/sequences.wz\"\nsequencenme=\"sequences.wz\"\nsequencelo=\"http://downloads.sourceforge.net/project/warzone2100/warzone2100/Videos/2.2/low-quality-en/sequences.wz\"\nsequencelonme=\"sequences-lo.wz\"\nrelbuild=\"build/Release/\"\ndmgout=\"build/dmgout\"\n\n# Fail if not release\nif [ ! -d \"${relbuild}Warzone.app\" ]; then\n echo \"error: This should only be run as Release\" >&2\n exit 1\nfi\n\n# Make a dir and get the sparseimage\nmkdir -p \"$dmgout\"\ncd \"$dmgout\"\nif [ ! -f \"$simgflnme\" ]; then\n echo \"Fetching $simgfl\"\n if ! curl -L -O --connect-timeout \"30\" \"$simgfl\"; then\n echo \"error: Unable to fetch $simgfl\" >&2\n exit 1\n fi\nelse\n echo \"$simgflnme already exists, skipping\"\nfi\n\n# Get the sequences\n\n# Comment out the following to skip the high qual seq\n# if [ ! -f \"$sequencenme\" ]; then\n# echo \"Fetching $sequencenme\"\n# if [ -f \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences.wz\" ]; then\n# cp \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences.wz\" \"$sequencenme\"\n# elif ! curl -L --connect-timeout \"30\" -o \"$sequencenme\" \"$sequence\"; then\n# echo \"error: Unable to fetch $sequence\" >&2\n# exit 1\n# fi\n# else\n# echo \"$sequencenme already exists, skipping\"\n# fi\n#\n\n# Comment out the following to skip the low qual seq\nif [ ! -f \"$sequencelonme\" ]; then\n echo \"Fetching $sequencelonme\"\n if [ -f \"${HOME}/Applications/Build/wz2100/dmgmaker/sequences-lo.wz\" ]; then\n cp \"${HOME}/Applications/Build/wz2100/dmgmaker/sequences-lo.wz\" \"$sequencelonme\"\n elif [ -f \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences-lq.wz\" ]; then\n cp \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences-lq.wz\" \"$sequencelonme\"\n elif ! curl -L --connect-timeout \"30\" -o \"$sequencelonme\" \"$sequencelo\"; then\n echo \"error: Unable to fetch $sequencelo\" >&2\n exit 1\n fi\nelse\n echo \"$sequencelonme already exists, skipping\"\nfi\n# \n\n# Copy over the app\ncd ../../\necho \"Copying the app cleanly.\"\nrm -r -f $dmgout/Warzone.app\nif ! tar -c --exclude '.svn' --exclude 'Makefile*' --exclude 'makefile*' --exclude '.DS_Store' -C build/Release Warzone.app | tar -xC $dmgout; then\n echo \"error: Unable to copy the app\" >&2\n exit 1\nfi\nmkdir -p \"${dmgout}/warzone2100-dSYM\"\ncp -pPR ${relbuild}*.dSYM \"${dmgout}/warzone2100-dSYM\"\ncd \"$dmgout\"\ntar -czf warzone2100-dSYM.tar.gz --exclude '.DS_Store' warzone2100-dSYM\n\n# mkredist.bash\n\ncd Warzone.app/Contents/Resources/data/\n\necho \"== Compressing base.wz ==\"\nif [ -d base/ ]; then\n cd base/\n zip -r ../base.wz *\n cd ..\n rm -rf base/\nfi\n\necho \"== Compressing mp.wz ==\"\nif [ -d mp/ ]; then\n cd mp/\n zip -r ../mp.wz *\n cd ..\n rm -rf mp/\nfi\n\ncd mods/\n\nmodlst=`ls -1`\nfor moddr in ${modlst}; do\n if [ -d ${moddr} ]; then\n cd ${moddr}\n if [ \"${moddr}\" = \"campaign\" ]; then\n sbtyp=\".cam\"\n elif [ \"${moddr}\" = \"global\" ]; then\n sbtyp=\".gmod\"\n elif [ \"${moddr}\" = \"multiplay\" ]; then\n sbtyp=\".mod\"\n elif [ \"${moddr}\" = \"music\" ]; then\n sbtyp=\".music\"\n else\n sbtyp=\"\"\n fi\n modlstd=`ls -1`\n for modwz in ${modlstd}; do\n if [ -d ${modwz} ]; then\n echo \"== Compressing ${modwz}${sbtyp}.wz ==\"\n cd ${modwz}\n zip -r ../${modwz}${sbtyp}.wz *\n cd ..\n rm -rf \"${modwz}/\"\n fi\n done\n cd ..\n fi\ndone\n\ncd ../../../../../\n\nrm -rf ./out ./temp\nmkdir temp/\nmkdir out/\nmv warzone2100-dSYM temp/warzone2100-dSYM\nmv warzone2100-dSYM.tar.gz out/warzone2100-dSYM.tar.gz\n\necho \"== Creating DMG ==\"\ncp wztemplate.sparseimage temp/wztemplatecopy.sparseimage\nhdiutil resize -size 150m temp/wztemplatecopy.sparseimage\nmountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\ncp -r Warzone.app/* /Volumes/Warzone\\ 2100/Warzone.app\n# hdiutil detach `expr match \"$mountpt\" '\\(^[^ ]*\\)'`\nhdiutil detach \"$mountpt\"\nhdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-novideo.dmg\n\nif [ -f \"$sequencelonme\" ]; then\n echo \"== Creating LQ DMG ==\"\n hdiutil resize -size 350m temp/wztemplatecopy.sparseimage\n mountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\n cp sequences-lo.wz /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n # hdiutil detach `expr match \"$mountpt\" '\\(^[^ ]*\\)'`\n hdiutil detach \"$mountpt\"\n hdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-lqvideo.dmg\nelse\n echo \"$sequencelonme does not exist, skipping\"\nfi\n\n\nif [ -f \"$sequencenme\" ]; then\n echo \"== Creating HQ DMG ==\"\n hdiutil resize -size 700m temp/wztemplatecopy.sparseimage\n mountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\n rm /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n cp sequences.wz /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n hdiutil detach \"$mountpt\"\n hdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-hqvideo.dmg\nelse\n echo \"$sequencenme does not exist, skipping\"\nfi\n\necho \"== Cleaning up ==\"\nrm -f temp/wztemplatecopy.sparseimage\n\n# Open the dir\nopen \"out\"\n\nexit 0";
+ shellScript = "# Config\nsimgfl=\"http://downloads.sourceforge.net/project/warzone2100/build-tools/mac/wztemplate.sparseimage\"\nsimgflnme=\"wztemplate.sparseimage\"\nsimgflmd5=\"da10e06f2b9b2b565e70dd8e98deaaad\"\nsequence=\"http://downloads.sourceforge.net/project/warzone2100/warzone2100/Videos/2.2/high-quality-en/sequences.wz\"\nsequencenme=\"sequences.wz\"\nsequencelo=\"http://downloads.sourceforge.net/project/warzone2100/warzone2100/Videos/2.2/low-quality-en/sequences.wz\"\nsequencelonme=\"sequences-lo.wz\"\nrelbuild=\"build/Release/\"\ndmgout=\"build/dmgout\"\n\n# Fail if not release\nif [ ! -d \"${relbuild}Warzone.app\" ]; then\n echo \"error: This should only be run as Release\" >&2\n exit 1\nfi\n\n# Make a dir and get the sparseimage\nmkdir -p \"$dmgout\"\ncd \"$dmgout\"\nif [ ! -f \"$simgflnme\" ]; then\n echo \"Fetching $simgfl\"\n if ! curl -L -O --connect-timeout \"30\" \"$simgfl\"; then\n echo \"error: Unable to fetch $simgfl\" >&2\n exit 1\n fi\nelse\n echo \"$simgflnme already exists, skipping\"\nfi\n\n# Get the sequences\n\n# Comment out the following to skip the high qual seq\nif [ ! -f \"$sequencenme\" ]; then\n echo \"Fetching $sequencenme\"\n if [ -f \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences.wz\" ]; then\n cp \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences.wz\" \"$sequencenme\"\n elif ! curl -L --connect-timeout \"30\" -o \"$sequencenme\" \"$sequence\"; then\n echo \"error: Unable to fetch $sequence\" >&2\n exit 1\n fi\nelse\n echo \"$sequencenme already exists, skipping\"\nfi\n#\n\n# Comment out the following to skip the low qual seq\nif [ ! -f \"$sequencelonme\" ]; then\n echo \"Fetching $sequencelonme\"\n if [ -f \"${HOME}/Applications/Build/wz2100/dmgmaker/sequences-lo.wz\" ]; then\n cp \"${HOME}/Applications/Build/wz2100/dmgmaker/sequences-lo.wz\" \"$sequencelonme\"\n elif [ -f \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences-lq.wz\" ]; then\n cp \"${HOME}/Library/Application Support/Warzone 2100 Trunk/sequences-lq.wz\" \"$sequencelonme\"\n elif ! curl -L --connect-timeout \"30\" -o \"$sequencelonme\" \"$sequencelo\"; then\n echo \"error: Unable to fetch $sequencelo\" >&2\n exit 1\n fi\nelse\n echo \"$sequencelonme already exists, skipping\"\nfi\n# \n\n# Copy over the app\ncd ../../\necho \"Copying the app cleanly.\"\nrm -r -f $dmgout/Warzone.app\nif ! tar -c --exclude '.svn' --exclude 'Makefile*' --exclude 'makefile*' --exclude '.DS_Store' -C build/Release Warzone.app | tar -xC $dmgout; then\n echo \"error: Unable to copy the app\" >&2\n exit 1\nfi\nmkdir -p \"${dmgout}/warzone2100-dSYM\"\ncp -pPR ${relbuild}*.dSYM \"${dmgout}/warzone2100-dSYM\"\ncd \"$dmgout\"\ntar -czf warzone2100-dSYM.tar.gz --exclude '.DS_Store' warzone2100-dSYM\n\n# mkredist.bash\n\ncd Warzone.app/Contents/Resources/data/\n\necho \"== Compressing base.wz ==\"\nif [ -d base/ ]; then\n cd base/\n zip -r ../base.wz *\n cd ..\n rm -rf base/\nfi\n\necho \"== Compressing mp.wz ==\"\nif [ -d mp/ ]; then\n cd mp/\n zip -r ../mp.wz *\n cd ..\n rm -rf mp/\nfi\n\ncd mods/\n\nmodlst=`ls -1`\nfor moddr in ${modlst}; do\n if [ -d ${moddr} ]; then\n cd ${moddr}\n if [ \"${moddr}\" = \"campaign\" ]; then\n sbtyp=\".cam\"\n elif [ \"${moddr}\" = \"global\" ]; then\n sbtyp=\".gmod\"\n elif [ \"${moddr}\" = \"multiplay\" ]; then\n sbtyp=\".mod\"\n elif [ \"${moddr}\" = \"music\" ]; then\n sbtyp=\".music\"\n else\n sbtyp=\"\"\n fi\n modlstd=`ls -1`\n for modwz in ${modlstd}; do\n if [ -d ${modwz} ]; then\n echo \"== Compressing ${modwz}${sbtyp}.wz ==\"\n cd ${modwz}\n zip -r ../${modwz}${sbtyp}.wz *\n cd ..\n rm -rf \"${modwz}/\"\n fi\n done\n cd ..\n fi\ndone\n\ncd ../../../../../\n\nrm -rf ./out ./temp\nmkdir temp/\nmkdir out/\nmv warzone2100-dSYM temp/warzone2100-dSYM\nmv warzone2100-dSYM.tar.gz out/warzone2100-dSYM.tar.gz\n\necho \"== Creating DMG ==\"\ncp wztemplate.sparseimage temp/wztemplatecopy.sparseimage\nhdiutil resize -size 150m temp/wztemplatecopy.sparseimage\nmountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\ncp -r Warzone.app/* /Volumes/Warzone\\ 2100/Warzone.app\n# hdiutil detach `expr match \"$mountpt\" '\\(^[^ ]*\\)'`\nhdiutil detach \"$mountpt\"\nhdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-novideo.dmg\n\nif [ -f \"$sequencelonme\" ]; then\n echo \"== Creating LQ DMG ==\"\n hdiutil resize -size 350m temp/wztemplatecopy.sparseimage\n mountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\n cp sequences-lo.wz /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n # hdiutil detach `expr match \"$mountpt\" '\\(^[^ ]*\\)'`\n hdiutil detach \"$mountpt\"\n hdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-lqvideo.dmg\nelse\n echo \"$sequencelonme does not exist, skipping\"\nfi\n\n\nif [ -f \"$sequencenme\" ]; then\n echo \"== Creating HQ DMG ==\"\n hdiutil resize -size 700m temp/wztemplatecopy.sparseimage\n mountpt=`hdiutil mount temp/wztemplatecopy.sparseimage | tr -d \"\\t\" | sed -E 's:(/dev/disk[0-9])( +)(/Volumes/Warzone 2100):\\1:'`\n rm /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n cp sequences.wz /Volumes/Warzone\\ 2100/Warzone.app/Contents/Resources/data/sequences.wz\n hdiutil detach \"$mountpt\"\n hdiutil convert temp/wztemplatecopy.sparseimage -format UDZO -o out/warzone2100-hqvideo.dmg\nelse\n echo \"$sequencenme does not exist, skipping\"\nfi\n\necho \"== Cleaning up ==\"\nrm -f temp/wztemplatecopy.sparseimage\n\n# Open the dir\nopen \"out\"\n\nexit 0";
};
43FA570B10FF8E9B0074E914 /* SDL */ = {
isa = PBXShellScriptBuildPhase;
Please sign in to comment.
Something went wrong with that request. Please try again.