mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
141 lines
2.8 KiB
JavaScript
141 lines
2.8 KiB
JavaScript
|
|
const fpmOptions = [
|
|
"--after-install=build/deb-postinstall"
|
|
]
|
|
|
|
module.exports = {
|
|
appId: "io.beekeeperstudio.desktop",
|
|
productName: "Beekeeper Studio",
|
|
releaseInfo: {
|
|
releaseNotesFile: "build/release-notes.md"
|
|
},
|
|
generateUpdatesFilesForAllChannels: true,
|
|
directories: {
|
|
output: "dist_electron"
|
|
},
|
|
files: [
|
|
'dist/**/*',
|
|
'package.json',
|
|
'public/icons/**/*',
|
|
'!**/node_gyp_bins/*'
|
|
],
|
|
afterSign: "electron-builder-notarize",
|
|
afterPack: "./build/afterPack.js",
|
|
asarUnpack: [
|
|
'**/package.json'
|
|
],
|
|
extraResources: [
|
|
{
|
|
from: './extra_resources/demo.db',
|
|
to: 'demo.db'
|
|
},
|
|
{
|
|
from: './extra_resources/production_pub.pem',
|
|
to: 'production_pub.pem'
|
|
},
|
|
{
|
|
from: 'build/launcher-script.sh',
|
|
to: 'launcher-script.sh'
|
|
},
|
|
{
|
|
from: './vendor',
|
|
to: 'vendor'
|
|
},
|
|
{
|
|
from: './public',
|
|
to: 'public'
|
|
}
|
|
],
|
|
fileAssociations: [
|
|
{
|
|
ext: 'db',
|
|
name: 'SQLite db file',
|
|
mimeType: 'application/vnd.sqlite3',
|
|
},
|
|
{
|
|
ext: 'sqlite3',
|
|
name: 'SQLite sqlite3 file',
|
|
mimeType: 'application/vnd.sqlite3'
|
|
},
|
|
{
|
|
ext: 'sqlite',
|
|
name: 'SQLite sqlite file',
|
|
mimeType: 'application/vnd.sqlite3'
|
|
}
|
|
],
|
|
protocols: [
|
|
{
|
|
name: "Amazon Redshift URL scheme",
|
|
schemes: ["redshift"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "CockroachDB URL scheme",
|
|
schemes: ["cockroachdb", "cockroach"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "MariaDB URL scheme",
|
|
schemes: ["mariadb"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "TiDB URL scheme",
|
|
schemes: ["tidb"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "MySQL URL scheme",
|
|
schemes: ["mysql"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "PostgreSQL URL scheme",
|
|
schemes: ["postgresql", "postgres", "psql"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "SQLite URL scheme",
|
|
schemes: ["sqlite"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
name: "SQL Server URL scheme",
|
|
schemes: ["sqlserver", "microsoftsqlserver", "mssql"],
|
|
role: "Editor"
|
|
},
|
|
{
|
|
"name": "Redis URL scheme",
|
|
"schemes": ["redis", "rediss"],
|
|
"role": "Editor"
|
|
}
|
|
],
|
|
mac: {
|
|
entitlements: "./build/entitlements.mac.plist",
|
|
entitlementsInherit: "./build/entitlements.mac.plist",
|
|
icon: './public/icons/mac/bk-icon.icns',
|
|
category: "public.app-category.developer-tools",
|
|
"hardenedRuntime": true,
|
|
publish: ['github']
|
|
},
|
|
linux: {
|
|
icon: './public/icons/png/',
|
|
category: "Development",
|
|
target: [
|
|
'appImage'
|
|
],
|
|
desktop: {
|
|
'StartupWMClass': 'beekeeper-studio'
|
|
},
|
|
},
|
|
appImage: {
|
|
publish: ['github'],
|
|
},
|
|
win: {
|
|
icon: './public/icons/png/512x512.png',
|
|
target: ['nsis', 'portable'],
|
|
publish: ['github'],
|
|
sign: "./build/win/sign.js",
|
|
},
|
|
}
|