It means you get this: http://imgur.com/a/Luy4L, right?
In that case: Good news, you installed it successfully. If that screen appears, it means you could run the binary.
Now that the binary quits after you click "Ok", that's something you need to ask the developer about. I only made sure you could launch the binary.
Recent community posts
It means you get this: http://imgur.com/a/Luy4L, right?
Yes, it would be. I haven't made a .deb in ages. The main problem here is that I'm not going to do that for every release. This really is something the person who releases the binaries needs to do. The script is a stop-gap solution until the developer makes the debs himself. The script will work as long as the basic structure of the zip doesn't change.
I did ponder making a downloader (like the flash-plugin and several others), but in that case you need a stable URL to download from. It isn't exactly clear what URL that might be. If you look at the URL you get when you download the game (for Linux), I get something like this (I modified it, so it actually is unusable): https://w3g3a5v6.ssl.hwcdn.net/upload2/game/127337/422265?GoogleAccessId=XXXXXXXXXXXX@developer.gserviceaccount.com&Expires=1489956677&Signature=s4EXIM3XeKnXefY%XF4LXowjQmXwO2YYX1H7XZGZoXjJqr%2FOMbiXJzO4Put4lqw%2XSRA3Tz%2Ba95YXjGaIglGXmBTmpg2thVgeX0d%2F025SH17Dd39EwP9UxbyyXU%2B4iiXMk6AlX%2FjRmrk8nnPXqWsir%2FXnZEL3olhvw=&hwexp=1489956937&hwsig=a1X255f2X4X154X299Xb0X3920XX256
As you see it contains even an expiry timestamp. You cannot use that for an installer-type .deb.
Sorry for using DropBox (you don't need an account to download it). It's probably the easiest way, unless there is some kind of repository for this project. Anyway, the script is rather quick and dirty, but should support both root (system-wide) and user-based (local) installation. I have only tested it on Ubuntu 16.04, but the "supported" string also includes 14.04 because I wanted to show the syntax. That does not mean it worked, or that I tested it on Ubuntu 14.04.
Anyway, if you do download the script understand:
- You should never run scripts you do not trust or understand, especially not as root.
- It assumes a bunch of installed tools, like "unzip", "lsb_release" and many others. It might not run on the distro of your choice.
- I tried to write it for the default Ubuntu shell, which is dash and should be POSIX compliant. Should... No guarantees. I am but human, and while I tested, I tested just superficially.
- Keep in mind that the script itself must get the executable permission. Alternatively, you can run it by writing "sh install-pcsb [...]" where [...] are the parameters.
- There are three parameters. All are optional, but if you specify no parameters, a system-wide installation is presumed and you better use sudo (or run as root)
- --source to specify where the downloaded zip file is
- --target to which directory this zipfile must be unzipped. This target needs to exist and you need to have write permissions on it-
- --force Skip the "supported OS" feature. This is mostly for people wanting to try it on other distributions (at their own risk, and I won't give support
Download link: install-pcbs.sh
Beware, that probably a non-Linux disk (USB drive?) They don't do permissions very well (MSDOS/NTFS). Let's check:
mount | grep "/media/pc"
What does it say?
Can you also give me the output of:
ls -la /media/pc/Disk1/temp/test/Linux/
It should look like this:
$ ls -la /opt/PC\ Building\ Simulator/Linux/
drwxr-xr-x 3 root root 4096 Mär 16 20:29 .
drwxr-xr-x 3 root root 4096 Mär 18 12:51 ..
drwxr-xr-x 6 root root 4096 Mär 16 20:29 PC Building Simulator_Data
-rwxr-xr-x 1 root root 27977372 Jan 19 14:06 PC Building Simulator.x86
-rwxr-xr-x 1 root root 27505776 Jan 19 14:06 PC Building Simulator.x86_64
If the first column does not match, we have a permission problem.
Furthermore, do note that the printf command I published is geared towards an /opt installation. You cannot just use that and expect that part to work without adapting paths.
sudo unzip /home/$(whoami)/Downloads/PC\ Building\ Simulator.zip -d /opt/PC\ Building\ Simulator
sudo chmod 755 /opt/PC\ Building\ Simulator/Linux/PC\ Building\ Simulator\.*
printf "[Desktop Entry]\nName=PC Building Simulator\nComment=3D simulation of building PCs\nExec=\"/opt/PC Building Simulator/Linux/PC Building Simulator.$( arch )\"\nIcon=/opt/PC Building Simulator/Linux/PC Building Simulator_Data/Resources/UnityPlayer.png\nTerminal=false\nType=Application\nCategories=Game\nKeywords=simulation\n" | sudo tee /usr/share/applications/pc-building-simulator.desktop >/dev/null
sudo chmod 755 /usr/share/applications/pc-building-simulator.desktop
Step by step explanation:
- Unzip the downloaded archive from your Download directory in your home directory. This is the default where Firefox saves stuff. Unless you specified this to be something else or use a different browser, it will be correct.
- Make sure the executables are actually ... executable. The developer should distribute his work in tar.gz archives where the correct permissions are set.
- Create a desktop file so you can launch it from the Unity launcher (Should work for other .desktop based launchers)
- That desktop file must be executable too to work.
That's it.. Well, I assume, I have a relatively stock Ubuntu installation, so I don't really assume there actually are undocumented dependencies. I didn't try the game, only went up to the welcome screen and quit. Sandy Bridge i3 graphics here.
In the thread below, I posted a link to an installation script.
Read the notes very carefully.