UFO:Alien Invasion

Technical support => Windows => Topic started by: odie on March 12, 2009, 06:28:30 am

Title: Error Compile NSIS Script (File R23122) on SVN R23458
Post by: odie on March 12, 2009, 06:28:30 am
Hi,

I realised that i am unable to compile the NSIS script.

The file is \src\ports\windows\installer.nsi

The error is:
Code: [Select]
File: "..\..\..\base\maps\Makefile.win" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\SVN Update\src\ports\windows\installer.nsi" on line 159 -- aborting creation process

I am on windows yupz. Using TSVN.

PS: I am attaching the script which is only modified on the compression type. Otherwise, its as per the revision. (Its renamed to .txt extension due to upload restrictions.)

I know that some files are missing (..\..\..\base\maps\Makefile.win) and i verified that this file is not downloaded in the SVN. And there is no such file in svn yet. So how do i bypass (where do i insert /NONFATAL if necessary). Thanks.

[attachment deleted by admin]
Title: Re: Error Compile NSIS Script (File R23122) on SVN R23458
Post by: geever on March 12, 2009, 08:41:15 am
this patch should do it:
Code: [Select]
Index: src/ports/windows/installer.nsi
===================================================================
--- src/ports/windows/installer.nsi     (revision 23451)
+++ src/ports/windows/installer.nsi     (working copy)
@@ -156,7 +156,7 @@
   Section "Mapping Tools" SEC02
     SetOutPath "$INSTDIR\base\maps"
     File "..\..\..\base\maps\*.map"
-    File "..\..\..\base\maps\Makefile.win"
+    File /NONFATAL "..\..\..\base\maps\Makefile.win"
     File "..\..\..\base\maps\compile.p*"
     SetOutPath "$INSTDIR\base\maps\alienb"
     File "..\..\..\base\maps\alienb\*.map"

ps. no guarantee, I don't know nsis. ;)

-geever
Title: Re: Error Compile NSIS Script (File R23122) on SVN R23458
Post by: Mattn on March 12, 2009, 08:49:23 am
just update your svn checkout - should be fixed in most recent trunk
Title: Re: Error Compile NSIS Script (File R23122) on SVN R23458
Post by: odie on March 13, 2009, 05:13:16 am
just update your svn checkout - should be fixed in most recent trunk

Thanks mattn!

I saw the patched NSIS le! Thanks! U rox!