Pack cont/fonts/ + cont/LuaUI into base.7z

Pack cont/fonts/ + cont/LuaUI into base.7z

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Pack cont/fonts/ + cont/LuaUI into base.7z

Post by abma »

What env-var can be used to get the source-dir of spring on the buildbot?

Error is:
http://springrts.com:7778/builders/full ... logs/stdio

corresponding script:

https://github.com/spring/spring/blob/m ... ync.sh#L28

i want to pack all stuff into the <version>_base.7z to allow installing from the .7z files.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Pack cont/fonts/ + cont/LuaUI into base.7z

Post by Tobi »

I don't think it is stored in any env var at the moment. Each script is run with the source directory as cwd though.

(Do note that the line you modified is within a cd ${BUILDDIR}..cd ${OLDPWD} block, so that run in the directory with build output files.)

E.g. it looks like this:

Code: Select all

build/   <-- build directory created by buildbot, contains source checkout
  .git/
  buildbot/
  rts/
  ...
  build-default/    <-- cmake build directory, direct child of source dir
    base/             <-- generated base content files
    ...
So I think in this case you need some .. in the path to traverse back to the source directory from inside the build directory.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Pack cont/fonts/ + cont/LuaUI into base.7z

Post by abma »

thanks, this helped much!

now i'm still having the problem, that some paths of the ais are wrong.

The Path of the ais/interfaces disallows placing them directly into a 7z.

Version information is missing in the path + data/ needs to be removed, for example:

builddir looks like this:

AI/Interfaces/C/SkirmishAI.dll
AI/SkirmishAI/NullAI/data/AIInfo.lua
but should look like
AI/Interfaces/C/0.1/SkirmishAI.dll
AI/SkirmishAI/NullAI/0.1/AIInfo.lua

i found no possibility how to change the path inside the 7z file, any ideas how to nicely solve that?

my current ideas:
* try to modify CMakeFiles
* move/copy files around
* stop my tries and clean the installer
* create an extra .7z for each ai and interface, would mean 3 additional files for the interfaces as the 7z ais could be reused, also version information would be lost

After this change, the buildbot could directly create a portable 7z.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Pack cont/fonts/ + cont/LuaUI into base.7z

Post by jK »

oh, just noticed.
Don't download those files from the buildbot in your webinstaller (that's what you try to do AFAIK). It's Licho's server that runs nearly everything of this project.
Instead the spring installer downloads are hosted on sourceforge to save traffic.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Pack cont/fonts/ + cont/LuaUI into base.7z

Post by abma »

thanks for this hint. These files can be rsynced to sf, too... i try to make releasing easier.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Pack cont/fonts/ + cont/LuaUI into base.7z

Post by abma »

now the files should contain all stuff to make a portable version from them...

why are the aiinterface.dll's not stripped in create-installer script? is this a bug?
Post Reply

Return to “Engine”