add release and electron-builder setup

This commit is contained in:
Anton Bracke
2022-02-18 11:49:53 +01:00
parent d64c7f9605
commit 1c1d61bd60
5 changed files with 145 additions and 37 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/dist/
/node_modules/
/dist/bundle.js
/yarn-error.log
/build/
+33
View File
@@ -0,0 +1,33 @@
appId: re.workadventu.desktop
files:
- "build/**/*"
- "assets/**/*"
- "sidebar/**/*"
dmg:
icon: false
linux:
category: "TODO;TODO"
packageCategory: "TODO;TODO"
maintainer: "TODO"
icon: "assets/icons/TODO.icns"
description: "TODO"
target:
# - deb
- zip
- AppImage
artifactName: "${productName}-${version}-${arch}.${ext}"
win:
icon: "assets/icons/TODO.ico"
artifactName: "${productName}-${version}-setup.${ext}"
publish:
provider: github
owner: thecodingmachine
repo: workadventure
vPrefixedTagName: false
releaseType: draft
+6 -35
View File
@@ -1,13 +1,15 @@
{
"name": "@workadventure/desktop",
"name": "workadventure-desktop",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "build/main.js",
"license": "SEE LICENSE IN LICENSE.txt",
"scripts": {
"build": "tsup-node ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.js",
"build": "tsup-node -d build ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.ts",
"dev": "yarn build --watch --onSuccess 'yarn electron build/main.js'",
"bundle": "electron-builder install-app-deps && electron-builder",
"release": "yarn bundle",
"typecheck": "tsc --noEmit",
"dev": "yarn build --watch --onSuccess 'yarn electron dist/main.js'",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "yarn eslint src/ . --ext .ts",
"fix": "yarn eslint --fix src/ . --ext .ts",
@@ -35,36 +37,5 @@
"prettier": "^2.5.1",
"tsup": "^5.11.13",
"typescript": "^3.8.3"
},
"build": {
"appId": "re.workadventu.desktop",
"files": [
"src/**/*",
"assets/**/*"
],
"dmg": {
"icon": false
},
"linux": {
"category": "TODO;TODO",
"packageCategory": "TODO;TODO",
"maintainer": "TODO",
"icon": "assets/icons/TODO.icns",
"description": "TODO",
"target": [
"deb",
"zip",
"AppImage"
],
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"win": {
"icon": "assets/icons/TODO.ico",
"artifactName": "${productName}-${version}-setup.${ext}"
},
"publish": {
"provider": "generic",
"url": "TODO"
}
}
}
+1 -1
View File
@@ -14,7 +14,7 @@
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./dist", /* Redirect output structure to the directory. */
"outDir": "./build", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */