mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] move build config to electron-builder.ts for better typing
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
import { Configuration } from "electron-builder";
|
||||
|
||||
const config: Configuration = {
|
||||
extraResources: [
|
||||
"./assets/jsons/bs-versions.json",
|
||||
"./assets/jsons/patreons.json",
|
||||
"./assets/proto/song_details_cache_v1.proto"
|
||||
],
|
||||
productName: "BSManager",
|
||||
appId: "org.erb.BSManager",
|
||||
asarUnpack: "**\\*.{node,dll}",
|
||||
files: [
|
||||
"dist/**/*",
|
||||
"node_modules",
|
||||
"package.json"
|
||||
],
|
||||
afterSign: ".erb/scripts/notarize.js",
|
||||
afterPack: ".erb/scripts/after-pack.js",
|
||||
win: {
|
||||
signingHashAlgorithms: ["sha256"],
|
||||
certificateSha1: "2164d6a7d641ecf6ad57852f665a518ca2bf960f",
|
||||
target: [
|
||||
"nsis",
|
||||
"nsis-web"
|
||||
],
|
||||
icon: "./build/icons/win/favicon.ico",
|
||||
extraResources: [
|
||||
"./build/icons/win",
|
||||
"./assets/scripts/*.exe"
|
||||
],
|
||||
},
|
||||
linux: {
|
||||
target: [
|
||||
"deb",
|
||||
"rpm",
|
||||
"pacman"
|
||||
],
|
||||
icon: "./build/icons/png",
|
||||
category: "Utility;Game;",
|
||||
extraResources: [
|
||||
"./build/icons/png",
|
||||
"./assets/scripts/DepotDownloader"
|
||||
],
|
||||
protocols: {
|
||||
name: "BSManager",
|
||||
schemes: [
|
||||
"bsmanager",
|
||||
"beatsaver",
|
||||
"bsplaylist",
|
||||
"modelsaber",
|
||||
"web+bsmap",
|
||||
],
|
||||
},
|
||||
},
|
||||
deb: {
|
||||
fpm: ["--after-install=build/after-install.sh"],
|
||||
},
|
||||
rpm: {
|
||||
fpm: ["--after-install=build/after-install.sh"],
|
||||
},
|
||||
pacman: {
|
||||
fpm: ["--after-install=build/after-install.sh"],
|
||||
},
|
||||
directories: {
|
||||
app: "release/app",
|
||||
buildResources: "assets",
|
||||
output: "release/build",
|
||||
},
|
||||
publish: {
|
||||
provider: "github",
|
||||
owner: "Zagrios",
|
||||
},
|
||||
fileAssociations: [
|
||||
{
|
||||
ext: "bplist",
|
||||
description: "Beat Saber Playlist (BSManager)",
|
||||
icon: "./assets/bsm_file.ico",
|
||||
role: "Viewer",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
+1
-77
@@ -20,7 +20,7 @@
|
||||
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
|
||||
"test": "jest",
|
||||
"test:unit": "jest ./src/__tests__/unit",
|
||||
"publish": "npm run build && electron-builder -c.win.certificateSha1=2164d6a7d641ecf6ad57852f665a518ca2bf960f --publish always --win --x64",
|
||||
"publish": "npm run build && electron-builder --publish always --win --x64",
|
||||
"publish:linux": "npm run build && electron-builder --publish always --linux --x64"
|
||||
},
|
||||
"lint-staged": {
|
||||
@@ -37,82 +37,6 @@
|
||||
"prettier --ignore-path .eslintignore --single-quote --write"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
"extraResources": [
|
||||
"./assets/jsons/bs-versions.json",
|
||||
"./assets/jsons/patreons.json",
|
||||
"./assets/proto/song_details_cache_v1.proto"
|
||||
],
|
||||
"productName": "BSManager",
|
||||
"appId": "org.erb.BSManager",
|
||||
"asarUnpack": "**\\*.{node,dll}",
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"node_modules",
|
||||
"package.json"
|
||||
],
|
||||
"afterSign": ".erb/scripts/notarize.js",
|
||||
"afterPack": ".erb/scripts/after-pack.js",
|
||||
"win": {
|
||||
"signingHashAlgorithms": [
|
||||
"sha256"
|
||||
],
|
||||
"target": [
|
||||
"nsis",
|
||||
"nsis-web"
|
||||
],
|
||||
"icon": "./build/icons/win/favicon.ico",
|
||||
"extraResources": [
|
||||
"./build/icons/win",
|
||||
"./assets/scripts/*.exe"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
"deb",
|
||||
"rpm",
|
||||
"pacman"
|
||||
],
|
||||
"icon": "./build/icons/png",
|
||||
"category": "Utility;Game;",
|
||||
"extraResources": [
|
||||
"./build/icons/png",
|
||||
"./assets/scripts/DepotDownloader"
|
||||
],
|
||||
"protocols": {
|
||||
"name": "BSManager",
|
||||
"schemes": [
|
||||
"bsmanager"
|
||||
]
|
||||
}
|
||||
},
|
||||
"deb": {
|
||||
"fpm": ["--after-install=build/after-install.sh"]
|
||||
},
|
||||
"rpm": {
|
||||
"fpm": ["--after-install=build/after-install.sh"]
|
||||
},
|
||||
"pacman": {
|
||||
"fpm": ["--after-install=build/after-install.sh"]
|
||||
},
|
||||
"directories": {
|
||||
"app": "release/app",
|
||||
"buildResources": "assets",
|
||||
"output": "release/build"
|
||||
},
|
||||
"publish": {
|
||||
"provider": "github",
|
||||
"owner": "Zagrios"
|
||||
},
|
||||
"fileAssociations": [
|
||||
{
|
||||
"ext": "bplist",
|
||||
"description": "Beat Saber Playlist (BSManager)",
|
||||
"icon": "./assets/bsm_file.ico",
|
||||
"role": "Viewer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Zagrios/bs-manager.git"
|
||||
|
||||
Reference in New Issue
Block a user