Skip to content
Merged
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
36 changes: 32 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- fix-gh-build-action
tags-ignore:
- '**'
pull_request:
Expand All @@ -15,15 +14,44 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 16
- name: Install windows dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends software-properties-common


sudo dpkg --add-architecture i386

curl -L https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/Release.key > winehq.key
sudo apt-key add winehq.key

sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_20.04/ ./'
sudo apt-get update -y

sudo apt-get -y purge software-properties-common libdbus-glib-1-2 python3-dbus python3-gi python3-pycurl python3-software-properties

sudo apt-get install aptitude
sudo aptitude install -y libglib2.0-0:i386
sudo aptitude install -y libgphoto2-6:i386
sudo aptitude install -y libgstreamer-plugins-base1.0-0:i386
sudo aptitude install -y libgstreamer1.0-0:i386
sudo aptitude install -y libsane:i386
sudo aptitude install -y libodbc1:i386

sudo rm -rvf /var/lib/apt/lists/*
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install -y wine-stable-i386

sudo apt-get install -y --no-install-recommends winehq-stable

wine --version
sudo apt-get install -y fakeroot
- name: Install mono
run: |
Expand All @@ -32,6 +60,6 @@ jobs:
- name: install dependencies
run: yarn install
- name: build
run: yarn run dist-linux
run: yarn run dist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 16
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 16
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"front-dev": "concurrently \"ELECTRON_IS_DEV=1 yarn react-start\" \"wait-on http://localhost:3000 && ELECTRON_IS_DEV=1 yarn electron-start\"",
"pack": "electron-builder --dir",
"dist": "electron-builder build -wl",
"dist-linux": "electron-builder build -l",
"build-dist": "yarn build && electron-builder --windows --linux --publish=always",
"start": "electron-forge start",
"package": "electron-forge package",
Expand Down