-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36caa5c
commit 36bf2c8
Showing
5 changed files
with
82 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Publish to Snapcraft | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
build: | ||
description: 'Build and publish to Snapcraft' | ||
required: true | ||
default: 'true' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Check package-lock.json | ||
run: npm ci | ||
|
||
- name: Install dependencies | ||
run: npm install --legacy-peer-deps | ||
|
||
- name: Build Electron app | ||
run: npm run build | ||
|
||
- name: Install Snapcraft | ||
run: | | ||
sudo snap install snapcraft --classic | ||
continue-on-error: true | ||
|
||
- name: Configure Snapcraft | ||
run: | | ||
echo ${{ secrets.SNAPCRAFT_API_KEY }} | snapcraft login --with - | ||
- name: Publish to Snapcraft | ||
run: | | ||
snapcraft push packages/bruno-electron/out/*.snap --release stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,45 @@ | ||
require('dotenv').config({ path: process.env.DOTENV_PATH }); | ||
|
||
const config = { | ||
"appId": "com.usebruno.app", | ||
"productName": "Bruno", | ||
"electronVersion": "21.1.1", | ||
"directories": { | ||
"buildResources": "resources", | ||
"output": "out" | ||
appId: 'com.usebruno.app', | ||
productName: 'Bruno', | ||
electronVersion: '21.1.1', | ||
directories: { | ||
buildResources: 'resources', | ||
output: 'out' | ||
}, | ||
"files": [ | ||
"**/*" | ||
], | ||
"afterSign": "notarize.js", | ||
"mac": { | ||
"artifactName": "${name}_${version}_${arch}_${os}.${ext}", | ||
"category": "public.app-category.developer-tools", | ||
"target": [ | ||
files: ['**/*'], | ||
afterSign: 'notarize.js', | ||
mac: { | ||
artifactName: '${name}_${version}_${arch}_${os}.${ext}', | ||
category: 'public.app-category.developer-tools', | ||
target: [ | ||
{ | ||
"target": "dmg", | ||
"arch": [ | ||
"x64", | ||
"arm64" | ||
] | ||
target: 'dmg', | ||
arch: ['x64', 'arm64'] | ||
}, | ||
{ | ||
"target": "zip", | ||
"arch": [ | ||
"x64", | ||
"arm64" | ||
] | ||
target: 'zip', | ||
arch: ['x64', 'arm64'] | ||
} | ||
], | ||
"icon": "resources/icons/mac/icon.icns", | ||
"hardenedRuntime": true, | ||
"identity": "Anoop MD (W7LPPWA48L)", | ||
"entitlements": "resources/entitlements.mac.plist", | ||
"entitlementsInherit": "resources/entitlements.mac.plist" | ||
icon: 'resources/icons/mac/icon.icns', | ||
hardenedRuntime: true, | ||
identity: 'Anoop MD (W7LPPWA48L)', | ||
entitlements: 'resources/entitlements.mac.plist', | ||
entitlementsInherit: 'resources/entitlements.mac.plist' | ||
}, | ||
"linux": { | ||
"artifactName": "${name}_${version}_${arch}_linux.${ext}", | ||
"icon": "resources/icons/png", | ||
"target": [ | ||
"AppImage", | ||
"deb" | ||
] | ||
linux: { | ||
artifactName: '${name}_${version}_${arch}_linux.${ext}', | ||
icon: 'resources/icons/png', | ||
target: ['AppImage', 'deb', 'snap'] | ||
}, | ||
"win": { | ||
"artifactName": "${name}_${version}_${arch}_win.${ext}", | ||
"icon": "resources/icons/png", | ||
"certificateFile": `${process.env.WIN_CERT_FILEPATH}`, | ||
"certificatePassword": `${process.env.WIN_CERT_PASSWORD}`, | ||
win: { | ||
artifactName: '${name}_${version}_${arch}_win.${ext}', | ||
icon: 'resources/icons/png', | ||
certificateFile: `${process.env.WIN_CERT_FILEPATH}`, | ||
certificatePassword: `${process.env.WIN_CERT_PASSWORD}` | ||
} | ||
}; | ||
|
||
module.exports = config; | ||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters