Loading...
  OR  Zero-K Name:    Password:   

Ubuntu packaging

15 posts, 1896 views
Post comment
Filter:    Player:  
sort
10 years ago
I think that this is the right place to put this, maybe it should be in development.

Why is ZK packaged as it is? If it was packaged with the engine and dependencies and such into a .deb file it would a) be easier to install, this might get more people playing ZK, and b) you would be able to get the game in the Ubuntu software center , which would almost certainly get more people playing.

If you were to do this, I would suggest porting ZKL first and then there would be no problems with releasing a game only to revert engines and leave Ubuntu users not knowing what to do.

What do you think?
+0 / -0


10 years ago
ZKL port is "in the works". The only issue is that the available manpower doesn't seem that intent on actually finishing the final steps - but we get weblobby now instead, which is like cool.

Would you want to maintain a zk-specific ubuntu ppa?
+0 / -0
10 years ago
I would be willing to do it, I just dont know how it is done.
+0 / -0
10 years ago
Reading about it, it seems like it would not be too hard. The place where i would not know what i was doing is combining the game and the engine and such into one package, I am no software developer.
+0 / -0
TheSponge
See it http://springrts.com/wiki/SetupGuide , comrade.
Also, install rapid too.

Or you can build an engine by youself like a really cool dude.
+0 / -0
As far as i am aware the package uploaded to the PPA have to be the source files. This would mean it will be necessary to somehow put spring, ZK and a lobby in one source file that is installed. What i was thinking about is getting a static build of the engine, using rapid to install ZK then that is what goes on the PPA, I am sure that wouldn't work though.

It would need one source file containing the engine, ZK and a lobby and maybe some maps that is automatically compiled by the PPA (very useful time saving thing about PPAs). I do not know how to combine two or more source packages with makefiles and such into one source package, which is then compiled by the PPA and all of the separate pieces of it are installed and work together when the game is installed.

I am not sure what i was supposed to get from the spring setup guide, it is only about compiling or installing spring on its own. I already use rapid for managing spring games but I don't know how it will be helpful for this.
+0 / -0
Have a look here for debian packaging instructions, which are probably 95% relevant for ubuntu:
http://www.debian.org/doc/devel-manuals#maint-guide

And for ubuntu specifics:
http://developer.ubuntu.com/packaging/html/

Please make packages that allow players to have multiple major revisions of the engine. IE, spring-95 shouldn't remove spring-94.
+0 / -0
10 years ago
TheSponge
WTF??? It's offical PPA. Use it. Just use! What is you'r problem?
Lobby will download ZK-mode when you try to enter battle, or you can do it by rapid.
+0 / -0
10 years ago
This is for linux, as yet there is no ZKL for linux and therefore since the point of this is to make installing a easier and cleaner process the package must contain spring, ZK and springlobby and/or NOTAlobby. Thank you for those documents sheep, they look very useful.
+0 / -0
I have been looking at those documents and the ZK development wiki. The point that I was looking to get to with the ppa is that the end user can open a terminal and type "sudo apt-get install zero-k".

I believe that the only way this is possible is to include the engine and a lobby in the ZK source code. I could do it easily if it was only spring or only ZK, but I certainly could not edit the source code to include the engine.

I think that this would need to be done in a separate branch of the source code until it is clear that it works well and the ppa is working. As far as I am aware, the job of the current ppa maintainer at any given time is to build the package, making sure it works and upload it to the ppa.
+0 / -0
quote:
I believe that the only way this is possible is to include the engine and a lobby in the ZK source code

No.

1) There are dependencies. You should know about those. If you don't google asap.
2) There are metapackages that contain only dependencies, commonly used exactly for this purpose. Like nvidia-current.
3) You can roll out your own spring packages like sheep said.
4) metapackage zk-latest depends on zero-k_v1.1.4.4, springlobby, and spring-94.1-ubuntu1
5) ???
6) profit. not as much profit as weblobby, but some, for sure.
+0 / -0
Answer: one -package is easy to install first time, but you want to download everything again when there is a small bugfix of 10kb change and you wish download 200mb for it?

YOU ARE CRAZY IF YOU INTENDED TO UPGRADE ZERO-K WITH APT!

rapid install changed/new file that is why it is better. apt always download the whole package. and zero-k team don't maintain it as far as I know.

TheSponge you may learn more about packaging, I don't do it myself but Im aware of why they are in seperated packages. You want all-in-one then make it a virtual package but I don't think anyone would make zero-k included.

So, use what you have, spring ppa + rapid, any other problem?

or you have weblobby now, which is easier. Install OpenJDK, then browse http://weblobby.springrts.com



+0 / -0
10 years ago
The point of making it into a ppa was to make it click and install. If multiple packages need to be installed separately then it will be no easier then using rapid like everyone does now. I think it is possible to have multiple other packages (dependencies and such) installed when one package is installed (ZK). As far as I am aware it should be possible to have spring and springlobby installed when the ZK package is installed.

Something I have thought about is a script (just like a windows installer) that is available to download and installs spring, a lobby, the python things on the download page, rapid and then installs the game with rapid.

I think that this would be much easier and require less maintaining than a ppa and should be equally quick and easy to install.
+0 / -0
TheSponge: The problem become rapid.

install springlobby from apt (SpringPPA).

install pip from apt (Official)
install rapid from pip
install zero-k from rapid

you want a button that do last 3:

find someone play with shell and do so with Zenity, you just need zero-k install-button anyway...
+0 / -0
10 years ago
I have made two scripts to install and update ZK. they should work on any Debian based Linux distribution, they do not work with windows. If people want them for another distro then please ask, I should be able to make it work. As far as i know they will just work, although you will have to enter text when prompted. The scripts to install and update are here and here respectively. Please test and report any problems.
+0 / -0