Skip to content

Commit

Permalink
Set yarn package as the script for triggering Conveyor to build and…
Browse files Browse the repository at this point in the history
… publish new versions
  • Loading branch information
nelsonni committed Nov 1, 2023
1 parent 5548ca5 commit 8a94f83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion conveyor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package-json {
app {
display-name = "Synectic"
rdns-name = io.github.EPICLab.synectic
site.base-url = "localhost:5173"
electron.version = ${package-json.devDependencies.electron}
inputs = ${app.inputs} [
package.json
Expand All @@ -24,6 +23,20 @@ app {
version -> version
]

# Reference to the GitHub repository where the project is hosted.
#
# This will automatically set app.site.base-url to the GitHub Pages URL:
# https://github.com/EPICLab/synectic/releases/latest/download
vcs-url = "github.com/EPICLab/synectic"
site {
github {
oauth-token = ${secrets.CONVEYOR}

# Upload the download site to the gh-pages branch, which will automatically be
# available at: https://EPICLab.github.io/synectic/download.html
pages-branch = "gh-pages"
}
}
// Check for and apply updates synchronously on every app launch instead of in the background.
// Consider removing this line for your own app!
updates = aggressive
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"main": "packages/main/dist/index.cjs",
"scripts": {
"build": "yarn build:main && yarn build:preload && yarn build:renderer",
"build:prod-all": "cross-env MODE=production yarn build",
"build:main": "cd ./packages/main && vite build",
"build:preload": "cd ./packages/preload && vite build",
"build:renderer": "cd ./packages/renderer && vite build",
"compile": "cross-env MODE=production yarn build && electron-builder build --config .electron-builder.config.js --dir --config.asar=false",
"package": "cross-env MODE=production yarn build && conveyor make copied-site",
"clean": "rimraf dist && rimraf packages/*/dist",
"test": "yarn test:main && yarn test:preload && yarn test:renderer && yarn test:e2e",
"test:e2e": "yarn build && vitest run",
Expand Down

0 comments on commit 8a94f83

Please sign in to comment.