Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed May 10, 2024
1 parent 1c4fa26 commit 6cd1e99
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ jobs:
NODE_ENV: production
DEBUG: electron-notarize
run: node build.js

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
path: dist/*.dmg
15 changes: 8 additions & 7 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,26 @@ const main = async () => {
artifactName: '${productName}-${version}-${platform}-${arch}.${ext}',
productName: 'Olas Operate',
files: ['electron/**/*', 'package.json'],
publish: "always",
directories: {
output: 'dist',
},
cscKeyPassword: process.env.CSC_KEY_PASSWORD,
cscLink: process.env.CSC_LINK,
publish: {
provider: 'github',
owner: 'valory-xyz',
repo: 'olas-operate-app',
releaseType: 'draft',
token: process.env.GH_TOKEN,
},
mac: {
target: [
{
target: 'dmg',
arch: ['arm64'],
},
],
publish: {
provider: 'github',
owner: 'valory-xyz',
repo: 'olas-operate-app',
releaseType: 'draft',
token: process.env.GH_TOKEN,
},
category: 'public.app-category.utilities',
icon: 'electron/assets/icons/splash-robot-head.png',
hardenedRuntime: true,
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,5 @@
"start": "electron .",
"build": "rm -rf dist/ && electron-builder build"
},
"build": {
"publish": "always"
},
"version": "0.1.0-rc15"
}

0 comments on commit 6cd1e99

Please sign in to comment.