Browse Source

Script to create files for launcher updates


git-svn-id: http://svn.dmdirc.com/trunk@3153 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
c3bdd138c6
3 changed files with 31 additions and 0 deletions
  1. 31
    0
      launcher/createUpdate.sh
  2. BIN
      launcher/windows/DMDirc.exe
  3. BIN
      launcher/windows/DMDircUpdater.exe

+ 31
- 0
launcher/createUpdate.sh View File

@@ -0,0 +1,31 @@
1
+#!/bin/sh
2
+# This script generates the launcher updates
3
+LAUNCHERDIR="/home/dmdirc/google/launcher"
4
+LAUNCHERUPDATEDIR="/home/dmdirc/www/updates/launchers/"
5
+
6
+LINUXVERSION=`cat ${LAUNCHERDIR}/linux/DMDirc.sh | grep LAUNCHERVERSION= | awk -F\" '{print $2}'`
7
+WINDOWSVERSION=`cat ${LAUNCHERDIR}/windows/DMDirc.dpr | grep "launcherVersion: String =" | awk -F\' '{print $2}'`
8
+
9
+if [ ! -e "${LAUNCHERUPDATEDIR}/linux-${LINUXVERSION}.sh" ]; then
10
+	cp ${LAUNCHERDIR}/linux/DMDirc.sh ${LAUNCHERUPDATEDIR}/linux-${LINUXVERSION}.sh
11
+fi;
12
+
13
+if [ ! -e "${LAUNCHERUPDATEDIR}/windows-${WINDOWSVERSION}.zip" ]; then
14
+	OLDDIR=${PWD}
15
+	cd ${LAUNCHERDIR}/windows
16
+	sh compile.sh
17
+	# Create symlinks
18
+	for exe in `ls *.exe`; do
19
+		ln -s ${exe} .${exe}
20
+	done;
21
+
22
+	# Create Zip File
23
+	zip -9 ${LAUNCHERUPDATEDIR}/windows-${WINDOWSVERSION}.zip .*.exe
24
+
25
+	# Remove temp exes
26
+	for exe in `ls .*.exe`; do
27
+		rm -Rf ${exe}
28
+	done;
29
+
30
+	cd ${OLDDIR}
31
+fi;

BIN
launcher/windows/DMDirc.exe View File


BIN
launcher/windows/DMDircUpdater.exe View File


Loading…
Cancel
Save