Skip to content

Commit

Permalink
[Update] build.yml, electron-builder.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoichaan0513 committed Aug 15, 2022
1 parent 60b8eb9 commit fe3af1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04, macos-latest, ubuntu-latest ]
os: [ windows-latest, macos-latest, ubuntu-latest ]

steps:
- name: Check out Git repository
Expand All @@ -21,38 +21,35 @@ jobs:
node-version: 16

- name: Install Required Build Toolchain (Windows, Linux)
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install --no-install-recommends -y libopenjp2-tools
- name: Install Wine (Windows)
if: matrix.os == 'ubuntu-18.04'
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
- name: Set "NODE_OPTIONS" (Windows, Linux)
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-latest'
if: matrix.os == 'windows-latest'
run: |
export NODE_OPTIONS="--max-old-space-size=6144 --gc_interval=100"
echo $NODE_OPTIONS
set NODE_OPTIONS="--max-old-space-size=6144 --gc_interval=100"
echo %NODE_OPTIONS%
- name: Set "NODE_OPTIONS" (macOS)
if: matrix.os == 'macos-latest'
run: |
export NODE_OPTIONS="--max-old-space-size=10240 --gc_interval=100"
echo $NODE_OPTIONS
- name: Set "NODE_OPTIONS" Linux)
if: matrix.os == 'ubuntu-latest'
run: |
export NODE_OPTIONS="--max-old-space-size=6144 --gc_interval=100"
echo $NODE_OPTIONS
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Compile (Windows)
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'windows-latest'
run: npm run ci-compile:win32
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
10 changes: 1 addition & 9 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,7 @@
},
"mac": {
"category": "public.app-category.utilities",
"target": [
{
"target": "default",
"arch": [
"x64",
"arm64"
]
}
]
"target": "default"
},
"linux": {
"category": "Network",
Expand Down

0 comments on commit fe3af1f

Please sign in to comment.