It is currently 15 May 2025, 22:42
   
Text Size

SVN Build, Do It Yourself

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: SVN Build, Do It Yourself

Postby Snacko » 12 Jul 2010, 09:51

I'm updating the batch file as some libraries changed so you need to update. I'll upload a new full package with this change too.

update-and-build.bat
Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /S
copy forge-svn\forge.properties forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby Corwin72 » 12 Jul 2010, 13:53

This worked. Thanks
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Build, Do It Yourself

Postby lazylockie » 13 Jul 2010, 22:47

Hi,

I'd like to know if it's possible to compile the code with Netbeans.

Thank you,
Henrique

Edit: actually I could build (using your 2.3 bat files) without Netbeans or Eclipse.
Last edited by lazylockie on 14 Jul 2010, 19:54, edited 1 time in total.
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: SVN Build, Do It Yourself

Postby Snacko » 14 Jul 2010, 11:26

Sure it is, however netbeans doesn't have a java compiler so you need jdk installed too.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby SoulStorm » 14 Jul 2010, 17:03

Corwin72 wrote:When I try to run the new forge after updating I get the error.
Could not find the main class:forge.Gui_NewGame. Program will exit.
Yeah. I got exactly the same error.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Build, Do It Yourself

Postby Corwin72 » 14 Jul 2010, 19:48

Try running this:

Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884

It is Snacko's tool updated with the fix earlier on the page.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Build, Do It Yourself

Postby Chris H. » 14 Jul 2010, 20:40

Corwin72 wrote:Try running this:

Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884

It is Snacko's tool updated with the fix earlier on the page.
`
I copied the url address of the file archive and will paste that in below:

User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Build, Do It Yourself

Postby SoulStorm » 14 Jul 2010, 21:27

Corwin72 wrote:Try running this:

Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884

It is Snacko's tool updated with the fix earlier on the page.
Nope, I still have the exact same problem for whatever reason. I'm running vista 64.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Build, Do It Yourself

Postby lovelydwarf » 15 Jul 2010, 04:00

Has anyone converted this tool into a Mac version? I'm afraid I'm a bit too ignorant to do it. Thanks.
lovelydwarf
 
Posts: 17
Joined: 05 May 2010, 03:15
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Chris H. » 15 Jul 2010, 09:54

lovelydwarf wrote:Has anyone converted this tool into a Mac version? I'm afraid I'm a bit too ignorant to do it. Thanks.
`
Not yet. I have a Mac but I do not have any experience in creating and running scripts in the Terminal app. I use the Mac versions of Eclipse, Subclipse and Subversion. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Build, Do It Yourself

Postby Corwin72 » 15 Jul 2010, 14:25

SoulStorm wrote:
Nope, I still have the exact same problem for whatever reason. I'm running vista 64.
I have tested the backup creator on Vista 32 and XP and had no issues. Perhaps it is an issue with your 64 bit OS.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Build, Do It Yourself

Postby Snacko » 22 Jul 2010, 12:56

Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /E
xcopy custom\* forge\ /Y /E
copy forge-svn\forge.properties forge\ /Y
copy forge-svn\forge.preferences forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
Small change and update. If you have 'custom' directory it will be copied to forge directory before it's zipped, so you can include whatever you need like decks / avatars / custom configs etc. Everything from 'custom' directory will overwrite anything from svn.
Ex. custom\decks\YourDeck.txt

When I update the full package I'll update eclipse compiler to new release.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby 1diehard1 » 02 Aug 2010, 02:32

I'd really like to compile it, but I can't quite get it working. My system is ubuntu linux 10.04 - I have eclipse installed and everything. Here's what I've got:
Code: Select all
java -jar build\ecj-3.5.2.jar forge-card-game\src -1.5 -classpath forge-card-game\src forge-card-game\res\lib\google-collections-1.0.jar forge-card-game\res\lib\java-image-scaling-0.8.4.jar forge-card-game\res\lib\miglayout-3.7.3.1-swing.jar forge-card-game\res\lib\jl1.0.1.jar forge-card-game\res\lib\napkinlaf-1.2.jar forge-card-game\res\lib\nimrodlf.jar forge-card-game\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
cp forge-card-game\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
cp -r forge-card-game\res\* forge\res\ /Y /E
cp -r custom\* forge\ /Y /E
cp forge-card-game\forge.properties forge\ /Y
cp forge-card-game\forge.preferences forge\ /Y
mv forge.jar forge\
cp build\forge.exe forge\
rm forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
1diehard1
 
Posts: 4
Joined: 31 Mar 2010, 00:52
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Snacko » 02 Aug 2010, 15:50

The script is windows only, so you still would need to change ..\build\7z.exe to 7z and have 7zip installed. In linux there are no /x switched so you need to change them too in (here you can remove those /Y and /Y /E). Plus rmdir forge will fail as it can only delete empty directories you need rm -rf forge.
However if you already got eclipse you can use that to build the jar via jardesc that included in svn.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby Corwin72 » 14 Sep 2010, 03:16

Snacko,
I think that r2017 has broken the builder again. Is there any way that you could post an updated "update-and-build.bat"?
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 54 guests


Who is online

In total there are 54 users online :: 0 registered, 0 hidden and 54 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 54 guests

Login Form