Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 19 additions & 22 deletions .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
name: Build/release

on: push
on: [ push, workflow_dispatch ]

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
#mac-release:
# runs-on: macos-latest

release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
- name: Build Linux
run: |
docker build . -t builder
docker run -v $PWD:/build:z builder bash -c "cd /build && make ci"
- name: Create a release
uses: "marvinpinto/action-automatic-releases@latest"
with:
node-version: 14

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "${{ inputs.release_version }}"
description: "${{ inputs.release_changelog }}"
prerelease: false
files: |
build/*.AppImage
build/*.exe
build/*.dmg
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ubuntu:focal
#Setup
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y make curl
#Wine
RUN dpkg --add-architecture i386
RUN mkdir -pm755 /etc/apt/keyrings
RUN curl https://dl.winehq.org/wine-builds/winehq.key -o /etc/apt/keyrings/winehq-archive.key
RUN curl https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources -o /etc/apt/sources.list.d/winehq-focal.sources
RUN apt update
RUN apt install -yq winehq-stable
# NodeJS
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs git
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: build ci


ci: build

build:
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf ssh://
npm ci
npm run dist