Skip to content

Commit

Permalink
* fixed linux installer creation
Browse files Browse the repository at this point in the history
* fixed upload urls
  • Loading branch information
Martin Gerhardy committed Jun 17, 2010
1 parent f4522f1 commit d6e50dc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
19 changes: 11 additions & 8 deletions build/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ mappack: maps-sync
dataarchive: pk3
tar -cvp -f ufoai-$(UFOAI_VERSION)-data.tar base/*.pk3

USER?=tlh2000
USER?=tlh2000,ufoai
PATH?=/home/frs/project/u/uf/ufoai/"UFO_AI\ 2.x"/$(VERSION)/
UPLOADHOST?=frs.sourceforge.net
URL=$(USER)@$(UPLOADHOST):$(PATH)
upload-sf:
rsync -avP -e ssh uforadiant-$(UFORADIANT_VERSION)-macosx-$(TARGET_CPU).dmg $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-macosx-$(TARGET_CPU).dmg $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-source.tar.bz2 $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-linux.run $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-data.tar $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh uforadiant-$(UFORADIANT_VERSION)-win32.exe $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-win32.exe $(USER)@frs.sourceforge.net:uploads/
rsync -avP -e ssh uforadiant-$(UFORADIANT_VERSION)-macosx-$(TARGET_CPU).dmg $(URL)
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-macosx-$(TARGET_CPU).dmg $(URL)
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-source.tar.bz2 $(URL)
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-linux.run $(URL)
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-data.tar $(URL)
rsync -avP -e ssh uforadiant-$(UFORADIANT_VERSION)-win32.exe $(URL)
rsync -avP -e ssh ufoai-$(UFOAI_VERSION)-win32.exe $(URL)

create-release: dataarchive wininstaller linuxinstaller macinstaller sourcearchive upload-sf
create-dev: dataarchive wininstaller linuxinstaller macinstaller sourcearchive
Expand Down
17 changes: 7 additions & 10 deletions build/install_linux.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
linuxinstaller: installer-pre packdata update_installer_data makeself

LINUX_INST_DIR=contrib/installer/linux
ROOTDIR=$(shell pwd)

LINUX_INST_DIR=$(ROOTDIR)/contrib/installer/linux
#everything inside this dir will be compressed to the self extracting archive
LINUX_INST_DATADIR=$(LINUX_INST_DIR)/data
#this is only for arranging the path names and tar the zip files
Expand All @@ -14,21 +16,16 @@ BINARIES = \
ufo \
ufoded \
ufo2map \
ufomodel \
base/game.$(SHARED_EXT)

BINARIES_64 = \
ufo.x86_64 \
ufoded.x86_64 \
ufo2map.x86_64 \
base/game_x86_64.$(SHARED_EXT)

packdata:
@mkdir -p $(LINUX_INST_TMPDIR)/base
@tar -cvjp -f $(LINUX_INST_DATADIR)/ufo-x86.tar.bz2 $(BINARIES)
@tar -cvjp -f $(LINUX_INST_DATADIR)/ufo-x86_64.tar.bz2 $(BINARIES_64)
@cd $(ROOTDIR); tar -cvjp -f $(LINUX_INST_DIR)$(LINUX_INST_DATADIR)/i18n.tar.bz2 base/i18n/ --exclude .svn --exclude updated*
@cp $(PAK_FILES) $(LINUX_INST_TMPDIR)/base
@cd $(LINUX_INST_TMPDIR); tar -cvp -f ../$(LINUX_INST_DATADIR)/data.tar base
@tar -cvjp -f $(LINUX_INST_DATADIR)/i18n.tar.bz2 base/i18n/ --exclude .svn --exclude updated*
@cp base/*.pk3 $(LINUX_INST_TMPDIR)/base
@cd $(LINUX_INST_TMPDIR) && tar -cvp -f ../data/data.tar base && cd $(ROOTDIR) && pwd

update_installer_data:
@sed 's/@VERSION@/$(UFOAI_VERSION)/g' $(LINUX_INST_DIR)/setup.xml.in | sed 's/@LINUX_INST_SIZE@/$(LINUX_INST_SIZE)/g' > $(LINUX_INST_DATADIR)/setup.data/setup.xml
Expand Down
3 changes: 3 additions & 0 deletions contrib/installer/linux/README.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ SYSTEM REQUIREMENTS
SDL >= 1.2.10
SDL_ttf >= 2.0.7
SDL_mixer >= 1.2.7
SDL_image >= 1.2.10
libjpeg >= 6.2
zlib >= 1.2.3
libcurl
libpng
libtheora
libxvidcore

RUNNING THE GAME
==================
Expand Down
14 changes: 0 additions & 14 deletions contrib/installer/linux/setup.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@
</option>
</component>

<component arch="x86_64" name="x86_64" version="@VERSION@">
<option arch="x86_64" install="true">
64 bit binaries
<binary arch="any" libc="any" binpath="bin/ufoai" symlink="ufoai"
icon="ufo.xpm" name="UFO: Alien Invasion 64-bit" menu="Games" desc="UFO: Alien Invasion" play="gui">
ufoai
</binary>
<files>
ufo-x86_64.tar.bz2
ufo.xpm
</files>
</option>
</component>

<component if="|(x86,x86_64)" name="i386" version="@VERSION@">
<option arch="any" install="true">
32 bit binaries
Expand Down

0 comments on commit d6e50dc

Please sign in to comment.