Coder Social home page Coder Social logo

casept / factorio-flatpak Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 14 KB

A flatpak-builder recipe which can be used to bundle the game factorio into a flatpak for increased isolation and easier installation.

License: MIT License

Makefile 37.31% Shell 62.69%
flatpak flatpak-builder factorio

factorio-flatpak's Introduction

factorio-flatpak

A flatpak package for the game factorio by wube software. Requires game tarball downloaded from factorio's official site (not the steam version!).

A note regarding 0.14.x

These versions of the game aren't officialy supported by the builder anymore as having the ability to build (and have installed) stable and experimental versions of the game at the same time would be tricky to handle. If you still need this version you should change it in 'com.factorio.factorio.json' and the 'Makefile'.

Building

First checkout the repo:

git clone https://github.com/casept/factorio-flatpak     
cd factorio-flatpak   

Install the needed runtime and SDK:

flatpak remote-add --user --if-not-exists --from gnome https://sdk.gnome.org/gnome.flatpakrepo       
flatpak install --user gnome org.freedesktop.Sdk 1.6      
flatpak install --user gnome org.freedesktop.Platform 1.6          

Place a .tar.gz of the game into the directory (It should be named factorio.tar.gz).
Then run make. This will create a .flatpak file in the directory, which contains the game.

Installation

Just run make install. This will install the game for your local user.

Running

In most desktop environments a factorio menu entry will have been created under games. If that's not the case you may need to log out and back in again. If you still can't find the icon your DE might not be looking in the directory where flatpak places .desktop files. If that's the case you'll have to run flatpak run com.factorio.factorio to start the game.

Accessing save games/mods/etc.

For sandboxing reasons the game is configured to save user data to ~/.var/app/com.factorio.factorio/.factorio instead of the usual ~/.factorio. This directory will have the same structure as it does when the game is installed systemwide by normal means.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.