Skip to content

Commit

Permalink
Allow building a stand-alone appimage
Browse files Browse the repository at this point in the history
adds makelove.toml and .gitignore
modifies readme to explain how to use makelove
adds a github workflow file to build appimages
  • Loading branch information
128f committed May 14, 2022
1 parent 61233f2 commit 5c95500
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build
on: [push]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
path: main
submodules: true
- name: Update
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt-get install --assume-yes python3-pip
- name: Checkout makelove
uses: actions/checkout@v2
with:
repository: pfirsich/makelove
path: makelove
- name: Install makelove
run:
pip3 install ./makelove
- name: Build
run: cd main && makelove
- name: Release
env:
ARTIFACT_NAME_APPIMAGE: 'multiviewer-2.AppImage'
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: main/dist/appimage/${{ env.ARTIFACT_NAME_APPIMAGE }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/**
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ A rewrite of my [Defold Multiviewer](https://github.com/rgrams/multiviewer) in L
### Missing features from Defold version:
* No native file dialogs (which only worked on Windows and MacOS anyway).

### Build a stand-alone appImage

We can use [makelove](https://github.com/pfirsich/makelove) to build a packaged image.

Simply install makelove using `pip3 install makelove` and run `makelove` in the root directory of this project.

### Added features from Defold version:
* No CPU cost at rest
- The window is only redrawn when you interact with it, so the CPU load should be pretty much zero when the program is just sitting there.
Expand Down
10 changes: 10 additions & 0 deletions makelove.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "multiviewer-2"
default_targets = ["appimage"]
build_directory = "dist"

icon_file = "Multiviewer_icon.ico"

love_files = [
"::git-ls-tree::",
"-*/.*",
]

0 comments on commit 5c95500

Please sign in to comment.