Skip to content

Build mac and win directly #530

Build mac and win directly

Build mac and win directly #530

Workflow file for this run

# SPDX-FileCopyrightText: 2021-2024 The Manyverse Authors
#
# SPDX-License-Identifier: Unlicense
name: Release desktop
on:
push:
branches: [master]
jobs:
build-linux:
name: Build Manyverse Linux
runs-on: ubuntu-20.04
if: ${{ startsWith(github.event.head_commit.message, 'release:') }}
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16.17.x
- name: Setup node-gyp
run: npm install -g node-gyp
- name: npm install
run: npm install
- name: Build the Electron app for Linux
run: npm run release-desktop-linux
env:
EB_PUBLISH: always
GH_TOKEN: ${{ secrets.GH_TOKEN }}
build-macos:
name: Build Manyverse macOS
runs-on: macos-11
if: ${{ startsWith(github.event.head_commit.message, 'release:') }}
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16.17.x
- name: Setup node-gyp
run: npm install -g node-gyp
- name: Setup build tools
run: brew install coreutils libtool autoconf automake
- name: npm install
run: npm install
- name: Build the Electron app for macOS
run: npm run release-desktop-macos
env:
EB_PUBLISH: always
GH_TOKEN: ${{ secrets.GH_TOKEN }}
build-win:
name: Build Manyverse Windows
runs-on: windows-2022
if: ${{ startsWith(github.event.head_commit.message, 'release:') }}
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install node-gyp
run: ./tools/install-node-gyp.ps1
- name: Install Visual Studio Build Tools
run: ./tools/install-vs-build-tools.ps1
- name: npm install
run: npm install
- name: Build the Electronapp for Windows
run: npm run release-desktop-win
env:
EB_PUBLISH: always
GH_TOKEN: ${{ secrets.GH_TOKEN }}