SVN Build, Do It Yourself
by mtgrares
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: SVN Build, Do It Yourself
by zerker2000 » 21 Jul 2011, 05:37
[*]Disadvantages: there is a considerable delay for code changes to be available to testers.
The script is something that should be written once and then work with minimal adjustment. That requires far less energy than asking developers for Dropbox integration.
The script is something that should be written once and then work with minimal adjustment. That requires far less energy than asking developers for Dropbox integration.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: Dropbox
by Braids » 21 Jul 2011, 16:25
Edit 1: Chris H. and jendave have convinced me this is a good idea, if we can use the maven tool to produce a nightly build and upload it to a web site. i'm not sure if Dropbox is that web site, though.
Last edited by Braids on 21 Jul 2011, 18:26, edited 1 time in total.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 
-

Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Dropbox
by Chris H. » 21 Jul 2011, 16:30
`Braids wrote:i'll have to side against using Dropbox for now. my vision is to release some sort of package that uses git to download and update to the latest version, along with a script to compile it. this is similar to the way our current latest SVN alpha testers operate.
Once we get the new site and Maven scripts up to date I may consider a nightly build and release before I go to bed. This would make it far easier for the testers to test. I can not make any promises though at this time.
-

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: Dropbox
by jendave » 21 Jul 2011, 16:52
We already have this - the Maven script.Braids wrote:i'll have to side against using Dropbox for now. my vision is to release some sort of package that uses git to download and update to the latest version, along with a script to compile it. this is similar to the way our current latest SVN alpha testers operate.
Re: SVN Build, Do It Yourself
by Braids » 21 Jul 2011, 18:27
i have been convinced. see my previous post.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 
-

Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Dropbox
by UnderFlow » 22 Jul 2011, 00:57
That sounds pretty good. It would also make it possible to include an auto-updater into Forge.Chris H. wrote:Once we get the new site and Maven scripts up to date I may consider a nightly build and release before I go to bed. This would make it far easier for the testers to test. I can not make any promises though at this time.
Re: Dropbox
by Braids » 22 Jul 2011, 02:20
UnderFlow wrote:That sounds pretty good. It would also make it possible to include an auto-updater into Forge.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 
-

Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Dropbox
by UnderFlow » 22 Jul 2011, 22:32
Thanks!Braids wrote:you have scary ideas! impressive.
About autoupdate:
Do you think that getting an auto-update function would be a good short term goal? Do we have a server capable of hosting Forge? (Could we use the server behind cardforge.org? Or Dropbox?)
About the git build script:
I am currently busy with RL, so I'll be unable to work on it for the next days. Sorry. If someone wants to try it, these are my findings so far:
- This is my progress so far (I replaced "forge-svn" with "cardforge"):
- code | Open
- @REM The lines starting with "REM" are comments and give hints about debugging possibilities
@REM delete the following line to reenable the output of the commands executed
@echo off
echo.
echo Forge Builder
echo -GIT edition-
echo.
echo Contributors:
echo Braids
echo Chris H.
echo Fnoed
echo Snacko
echo UnderFlow
echo.
echo We would also like to thank all Forge contributors.
echo.
echo For more information visit viewtopic.php?f=26^&t=2767
echo.
if "%~1"=="" (echo Please start this file with a command line parameter containing the desired output path in double quotes
goto :end
)
echo Target directory: %~1
echo.
echo.
echo ---------- 1: Updating Repository --------------------
echo.
if exist cardforge (
cd cardforge
..\build\git.exe pull --progress "origin"
cd ..
) else (
build\git.exe clone -v --progress "git://gitorious.org/cardforge/cardforge.git" "./cardforge"
)
echo.
echo ---------- 2: Creating jar file ----------------------
echo.
REM remove the "2>NUL" to reenable the error output stream of the following command
java -jar build\ecj-3.5.2.jar cardforge\src -1.6 -classpath cardforge\src;cardforge\res\lib\google-collections-1.0.jar;cardforge\res\lib\java-image-scaling-0.8.4.jar;cardforge\res\lib\miglayout-3.7.3.1-swing.jar;cardforge\res\lib\jl1.0.1.jar;cardforge\res\lib\napkinlaf-1.2.jar;cardforge\res\lib\nimrodlf.jar;cardforge\res\lib\substance-5.3.jar;cardforge\res\lib\java-yield-1.0-SNAPSHOT-jar-with-dependencies.jar;cardforge\res\lib\xstream-1.3.1.jar;cardforge\res\lib\xpp3_min-1.1.4c.jar;cardforge\res\lib\minlog-1.2.jar;cardforge\res\lib\swingx-1.6.1.jar;cardforge\res\lib\testng-6.1.1.jar -g:none -d output 2>NUL
mkdir output\META-INF
copy cardforge\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
REM remove the ">NUL" to reenable the standard output stream of the following command
..\build\7z.exe a -tzip -r -mx=9 ..\run-forge.jar *.class META-INF/MANIFEST.MF > NUL
echo.
echo ---------- 3: Copying Forge to target directory ------
echo.
cd ..
REM If you you want more feedback from the robocopies, remove some of the parameters:
REM /NJH -> no job header
REM /NJS -> no job summary
REM /NDL /NFL -> no directory list / no file list, respectively
robocopy .\cardforge %1 forge.properties /NDL /NFL /NJH /NJS
robocopy . %1 run-forge.jar /NDL /NFL /NJH /NJS
robocopy .\build %1 forge.exe /NDL /NFL /NJH /NJS
robocopy .\cardforge\res "%~1\res" /E /XF forge.preferences /XF display_new_layout.xml /XD .svn /NDL /NFL /NJH /NJS
IF %ERRORLEVEL%==9009 (echo Robocopy not found - using xcopy instead...
REM This is for Windows XP compatibility only. In contrast to the robocopy version, preferences and display layout are not retained.
xcopy "cardforge\res\*" "%~f1\res\" /Y /E /D
copy ".\cardforge\forge.properties" "%~f1\" /Y
copy ".\run-forge.jar" "%~f1\"
copy ".\build\forge.exe" "%~f1\"
)
echo.
echo ---------- 4: Cleaning up ----------------------------
echo.
rmdir output /s /q
del run-forge.jar
:end
pause
It should work.
I tested it once and got an empty jar (except for the manifest), but that bug might be fixed already. - I think that git.exe can operate as a standalone, but you have to copy a .dll from Git/bin (it will tell you which one). Additionally, it cannot find the command, so you have to copy some files from libexec/git-core, but I couldn't find out which ones exactly are needed (and the whole folder is 122 MB...).
Re: SVN Build, Do It Yourself
by Braids » 23 Jul 2011, 00:06
we're having some problems with maven right now, but i'm hoping that we'll eventually be able to put up nightly builds on a web site. then we can use something simpler than git, like curl or wget, for the scripts. but a lot of this is pipe dreaming about things i do not control, so please don't get your hopes up.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 
-

Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: SVN Build, Do It Yourself
by goonjamin » 23 Jul 2011, 00:13
The git version I posted has been working for me for a few days if anyone else is desperate for something to use until the official version is finished.
Re: SVN Build, Do It Yourself
by lazylockie » 26 Aug 2011, 05:33
I'm confused with all those scripts, is there one that is fully working right now?
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Re: SVN Build, Do It Yourself
by jendave » 26 Aug 2011, 07:19
Yes. Mavenlazylockie wrote:I'm confused with all those scripts, is there one that is fully working right now?
http://www.slightlymagic.net/wiki/Forge ... ild_System
Re: SVN Build, Do It Yourself
by Chris H. » 26 Aug 2011, 11:13
`lazylockie wrote:I'm confused with all those scripts, is there one that is fully working right now?
We first changed to Git and then back to SVN. It is somewhat confusing.
A person could follow the instructions in the getting started wiki. If a person wants to make commits they can ask to be accepted to the dev team. Without the commit privs a person could still update their local copy whenever they desired.
As Braids mentions, we are trying the nightly build scenario at the moment but there are no guarantees that we will be able to keep this up long term The SVN, nightly builds and biweekly betas
-

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
by jendave » 26 Aug 2011, 15:15
Chris, if you need help putting up nightly builds, I can do a few per week.Chris H. wrote:`lazylockie wrote:I'm confused with all those scripts, is there one that is fully working right now?
We first changed to Git and then back to SVN. It is somewhat confusing.
A person could follow the instructions in the getting started wiki. If a person wants to make commits they can ask to be accepted to the dev team. Without the commit privs a person could still update their local copy whenever they desired.
As Braids mentions, we are trying the nightly build scenario at the moment but there are no guarantees that we will be able to keep this up long term The SVN, nightly builds and biweekly betas
Re: SVN Build, Do It Yourself
by Chris H. » 27 Aug 2011, 03:05
`jendave wrote:Chris, if you need help putting up nightly builds, I can do a few per week.
Thanks for the offer. My wife and I will be moving out of state at some point and this will make it hard for me to keep up with things during the move.
-

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
Who is online
Users browsing this forum: No registered users and 32 guests