Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Linux build CI #1485

Merged
merged 11 commits into from
Nov 10, 2023
46 changes: 9 additions & 37 deletions .github/workflows/build_desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]

steps:
- name: Check out Git repository
Expand Down Expand Up @@ -48,13 +49,13 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: pnpm run build:linux

- name: Build macOS
if: matrix.os == 'macos-latest'
run: pnpm run build:mac
# - name: Build macOS
# if: matrix.os == 'macos-latest'
# run: pnpm run build:mac

- name: Build Win
if: matrix.os == 'windows-latest'
run: pnpm run build:win
# - name: Build Win
# if: matrix.os == 'windows-latest'
# run: pnpm run build:win

# - name: release
# uses: softprops/action-gh-release@v1
Expand All @@ -72,36 +73,7 @@ jobs:
# dist/*.yml
# dist/*.blockmap
# env:
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# jobs:
# build:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v3

# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '18.17'

# - name: use pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8

# - name: Cache pnpm modules
# uses: actions/cache@v3
# with:
# path: ~/.pnpm-store
# key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-

# - name: Install dependencies
# run: pnpm install

# - name: Build Win and Linux packages
# run: pnpm run build:win && pnpm run build:linux
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v3
# - name: build
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ An Electron application with Vue and TypeScript
### Install

```bash
$ pnpm install
pnpm install
```

### Development

```bash
$ pnpm dev
pnpm dev
```

### Build
Expand Down
70 changes: 44 additions & 26 deletions apps/desktop/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,52 @@ files:
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- resources/**
win:
executableName: MQTTX
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}

# win:
# executableName: ${productName}
# artifactName: ${productName}-Setup-${version}-${arch}.${ext}
# target:
# - target: nsis
# arch: [x64, ia32, arm64]
# nsis:
# oneClick: false
# allowElevation: true
# allowToChangeInstallationDirectory: true
# createStartMenuShortcut: true
# shortcutName: ${productName}
# uninstallDisplayName: ${productName}
# createDesktopShortcut: always

# mac:
# entitlementsInherit: build/entitlements.mac.plist
# extendInfo:
# - NSCameraUsageDescription: Application requests access to the device's camera.
# - NSMicrophoneUsageDescription: Application requests access to the device's microphone.
# - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
# - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
# notarize: false
# target:
# - target: dmg
# arch: [x64, arm64]
# - target: pkg
# arch: [x64, arm64]
# - target: zip
# arch: [x64, arm64]
# artifactName: ${productName}-${version}-${arch}.${ext}

linux:
executableName: ${productName}
artifactName: ${productName}-${version}-${arch}.${ext}
target:
- AppImage
- snap
- deb
- rpm
- target: AppImage
arch: [x64, arm64]
- target: deb
arch: [x64, arm64]
- target: snap
arch: [x64]
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://example.com/auto-updates
# publish:
# provider: generic
# url: https://example.com/auto-updates