Skip to content

Commit

Permalink
Guessing
Browse files Browse the repository at this point in the history
  • Loading branch information
danyill committed Dec 15, 2024
1 parent c50a6e9 commit 03941d2
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 3,801 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ permissions:
jobs:
build:
name: Build executables and create release
runs-on: ubuntu-latest
container: electronuserland/builder:wine-mono
runs-on: ubuntu-20.04
container: electronuserland/builder:wine
env:
RELEASE_ASSETS: |
dist/*.exe
dist/*.zip
steps:
# - name: Ensure Mono is installed even though it should already be
# run: apt-get update -y && apt-get install -y --no-install-recommends mono-devel ca-certificates-mono && apt-get clean && rm -rf /var/lib/apt/lists/*
- name: Take container home folder ownership
# necessary to get Wine to work
run: chown root:root /github/home
- name: Set GITHUB_ENV
run: echo "WINEARCH=win64" >> $GITHUB_ENV && echo "DISPLAY=:0.0" >> $GITHUB_ENV && echo "WINEPREFIX=/root/.winepref" >> $GITHUB_ENV && echo "ELECTRON_CACHE=/root/.cache/electron" >> $GITHUB_ENV && echo "ELECTRON_BUILDER_CACHE=/root/.cache/electron-builder"
run: echo "WINEARCH=win64" >> $GITHUB_ENV && echo "DISPLAY=:0.0" >> $GITHUB_ENV && echo "WINEPREFIX=/root/.winepref" >> $GITHUB_ENV && echo "ELECTRON_CACHE=/root/.cache/electron" >> $GITHUB_ENV && echo "ELECTRON_BUILDER_CACHE=/root/.cache/electron-builder" >> $GITHUB_ENV
- name: More random things
run: apt-get update && apt-get install -y xvfb
- name: Configure Wine
run: winecfg
- name: Checkout
Expand All @@ -36,11 +39,10 @@ jobs:
run: git config --global --add safe.directory '*'
- name: Install node dependencies
run: npm ci
- name: Take container home folder ownership
# necessary to get Wine to work
run: chown root:root /github/home
- name: Showing wine environment
run: env | grep WINE
- name: Build
run: npm run dist:electron
run: Xvfb :99 && export DISPLAY=:99 && npm run dist:electron
- name: List created files
run: ls -la dist
- name: Create release and upload assets
Expand Down
Loading

0 comments on commit 03941d2

Please sign in to comment.