Building script
#31
so this should be better? :
Code:
[Setup]
AppName=MC-Server
AppVersion=R1052
DefaultDirName={commonappdata}\FakeTruth\MC-Server
DefaultGroupName=MC-Server
UninstallDisplayIcon={app}\MCServer.exe
Compression=lzma2
SolidCompression=yes
OutputDir=userdocs:MC-Server

[Files]

Source: "mcserver.exe"; DestDir: "{app}"
Source: "Configuration.bat"; DestDir: "{app}"
Source: "crafting.txt"; DestDir: "{app}"
Source: "furnace.txt"; DestDir: "{app}"
Source: "groups.ini"; DestDir: "{app}"
Source: "items.ini"; DestDir: "{app}"
Source: "monsters.ini"; DestDir: "{app}"
Source: "settings.ini"; DestDir: "{app}"
Source: "terrain.ini"; DestDir: "{app}"
Source: "users.ini"; DestDir: "{app}"
Source: "webadmin.ini"; DestDir: "{app}"
Source: "Plugins\SquirrelChatLog.nut"; DestDir: "{app}\Plugins"
Source: "Plugins\Core\ban.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\coords.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\gamemode.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\gotoworld.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\help.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\item.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\kick.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\main.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\motd.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\onblockdig.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\onblockplace.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\oncraftingnorecipe.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\onkilled.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\onlogin.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\onplayerjoin.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\playerlist.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\pluginlist.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\regeneratechunk.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\reload.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\spawn.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\stop.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\teleport.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\time.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\top.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\unban.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\viewdistance.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_chat.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_manageplugins.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_permissions.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_playerlist.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_serversettings.lua"; DestDir: "{app}\Plugins\core"
Source: "Plugins\Core\web_whitelist.lua"; DestDir: "{app}\Plugins\core"
Source: "webadmin\template.html"; DestDir: "{app}\Plugins\core"

[Run]
Filename: "{app}\Configuration.bat"; Description: "Launch de Configurator";

[Icons]
Name: "{commondesktop}\MCServer"; Filename: "{app}\mcserver.exe"; WorkingDir: "{app}"
Reply
Thanks given by:
#32
Why not do Source: "Plugins\Core*.lua" that should work thought xoft already told you that.
Reply
Thanks given by:
#33
Better, but still no wildcards

EDIT: Too slow Wink
Reply
Thanks given by:
#34
Code:
[Setup]
AppName=MC-Server
AppVersion=R1052
DefaultDirName={commonappdata}\FakeTruth\MC-Server
DefaultGroupName=MC-Server
UninstallDisplayIcon={app}\MCServer.exe
Compression=lzma2
SolidCompression=yes
OutputDir=userdocs:MC-Server

[Files]

Source: "mcserver.exe"; DestDir: "{app}"
Source: "Configuration.bat"; DestDir: "{app}"
Source: "crafting.txt"; DestDir: "{app}"
Source: "furnace.txt"; DestDir: "{app}"
Source: "groups.ini"; DestDir: "{app}"
Source: "items.ini"; DestDir: "{app}"
Source: "monsters.ini"; DestDir: "{app}"
Source: "settings.ini"; DestDir: "{app}"
Source: "terrain.ini"; DestDir: "{app}"
Source: "users.ini"; DestDir: "{app}"
Source: "webadmin.ini"; DestDir: "{app}"
Source: "Plugins\SquirrelChatLog.nut"; DestDir: "{app}\Plugins"
Source: "Plugins\Core\*.lua"; DestDir: "{app}\Plugins\core"
Source: "webadmin\template.html"; DestDir: "{app}\webadmin"

[Run]
Filename: "{app}\Configuration.bat"; Description: "Launch de Configurator";

[Icons]
Name: "{commondesktop}\MCServer"; Filename: "{app}\mcserver.exe"; WorkingDir: "{app}"
Smile
(11-21-2012, 05:54 AM)xoft Wrote: EDIT: Too slow Wink

what do you mean?
Reply
Thanks given by:
#35
Yea another updateBig Grin
changelog:
Quote:- fixed a bug where it didn't import "Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%" into the settings.ini
- you now get a message with Y/N questions to prevent errors.     (ja=yes nee=no)
EDIT:
another huge function:
- it checks if TortoiseSVN and Microsoft Visual 2008 are installed and if not it asks you if you want to download it. if you press yes it will download automaticly if you press no it will stop.
and it checks if you have a 32 bit version of windows or a 64 bit version while downloading.
Smile hope you like it Smile
Reply
Thanks given by:
#36
i created a repository. it also has a bug tracker so if someone finds a bug, please post it. in the repository you can find the latest version. https://code.google.com/p/mc-server-build-script/
Reply
Thanks given by:
#37
Nice Smile
Useless, but niceBig Grin
Reply
Thanks given by:
#38
well i tought if nobody wil post something for days il make a reason for posting something Smile
Reply
Thanks given by:
#39
True, true.
Reply
Thanks given by:
#40
i can't believe how usefull these scripts areBig Grin
I now have a script that collects all the PDB files, the crashdumps and the MCServer.exe and put them into a .zip and then copy that into a dropbox folder so i can just copy the link and give it to people.
i also have a script that opens MCServer_Debug.exe and when i use /stop the script deletes the region folder recompiles the server and starts the server again. I am now using that to find out if i can make the Desert Hills a bit more like Minecraft Smile
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)