Browse Source

Fix compile.sh to work if UAC.rc is missing (eg launcher update rather than building an installer)


git-svn-id: http://svn.dmdirc.com/trunk@4437 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
9c5507e357
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      launcher/windows/compile.sh

+ 6
- 1
launcher/windows/compile.sh View File

@@ -1,6 +1,11 @@
1 1
 #!/bin/sh
2 2
 rm Vista.pas UAC.manifest UAC.rc
3
-cp ../../installer/windows/Vista.pas ../../installer/windows/UAC.manifest  ../../installer/windows/UAC.rc .
3
+if [ ! -e ../../installer/windows/UAC.rc ]; then
4
+	echo "1 24 \"UAC.manifest\"" > UAC.rc
5
+	cp ../../installer/windows/Vista.pas ../../installer/windows/UAC.manifest .
6
+else
7
+	cp ../../installer/windows/Vista.pas ../../installer/windows/UAC.manifest ../../installer/windows/UAC.rc .
8
+fi;
4 9
 
5 10
 rm -Rf ./*.exe
6 11
 fpc -Sd -Twin32 DMDirc.dpr

Loading…
Cancel
Save