mirror of
https://github.com/colanode/colanode.git
synced 2025-12-14 18:57:46 +01:00
Build fixes and improvements
This commit is contained in:
54
apps/desktop/electron-builder.json
Normal file
54
apps/desktop/electron-builder.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"appId": "com.colanode.desktop",
|
||||
"productName": "Colanode",
|
||||
"directories": {
|
||||
"buildResources": "build"
|
||||
},
|
||||
"files": [
|
||||
"!**/.vscode/*",
|
||||
"!src/*",
|
||||
"!electron.vite.config.{js,ts,mjs,cjs}",
|
||||
"!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}",
|
||||
"!{.env,.env.*,.npmrc,pnpm-lock.yaml}",
|
||||
"!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
|
||||
],
|
||||
"asarUnpack": ["resources/**"],
|
||||
"win": {
|
||||
"executableName": "Colanode",
|
||||
"nsis": {
|
||||
"artifactName": "${name}-${version}-setup.${ext}",
|
||||
"shortcutName": "${productName}",
|
||||
"uninstallDisplayName": "${productName}",
|
||||
"createDesktopShortcut": "always"
|
||||
}
|
||||
},
|
||||
"mac": {
|
||||
"entitlementsInherit": "build/entitlements.mac.plist",
|
||||
"extendInfo": {
|
||||
"NSCameraUsageDescription": "Application requests access to the device's camera.",
|
||||
"NSMicrophoneUsageDescription": "Application requests access to the device's microphone.",
|
||||
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
|
||||
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
|
||||
},
|
||||
"notarize": false
|
||||
},
|
||||
"dmg": {
|
||||
"artifactName": "${name}-${version}.${ext}"
|
||||
},
|
||||
"linux": {
|
||||
"target": ["AppImage", "snap", "deb"],
|
||||
"maintainer": "electronjs.org",
|
||||
"category": "Utility"
|
||||
},
|
||||
"appImage": {
|
||||
"artifactName": "${name}-${version}.${ext}"
|
||||
},
|
||||
"npmRebuild": false,
|
||||
"publish": {
|
||||
"provider": "generic",
|
||||
"url": "https://example.com/auto-updates"
|
||||
},
|
||||
"electronDownload": {
|
||||
"mirror": "https://npmmirror.com/mirrors/electron/"
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
appId: com.colanode.desktop
|
||||
productName: Colanode
|
||||
directories:
|
||||
buildResources: build
|
||||
files:
|
||||
- '!**/.vscode/*'
|
||||
- '!src/*'
|
||||
- '!electron.vite.config.{js,ts,mjs,cjs}'
|
||||
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
|
||||
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
||||
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||
asarUnpack:
|
||||
- resources/**
|
||||
win:
|
||||
executableName: Colanode
|
||||
nsis:
|
||||
artifactName: ${name}-${version}-setup.${ext}
|
||||
shortcutName: ${productName}
|
||||
uninstallDisplayName: ${productName}
|
||||
createDesktopShortcut: always
|
||||
mac:
|
||||
entitlementsInherit: build/entitlements.mac.plist
|
||||
extendInfo:
|
||||
- NSCameraUsageDescription: Application requests access to the device's camera.
|
||||
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
|
||||
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
|
||||
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
|
||||
notarize: false
|
||||
dmg:
|
||||
artifactName: ${name}-${version}.${ext}
|
||||
linux:
|
||||
target:
|
||||
- AppImage
|
||||
- snap
|
||||
- deb
|
||||
maintainer: electronjs.org
|
||||
category: Utility
|
||||
appImage:
|
||||
artifactName: ${name}-${version}.${ext}
|
||||
npmRebuild: false
|
||||
publish:
|
||||
provider: generic
|
||||
url: https://example.com/auto-updates
|
||||
electronDownload:
|
||||
mirror: https://npmmirror.com/mirrors/electron/
|
||||
@@ -14,7 +14,6 @@ export default defineConfig({
|
||||
{
|
||||
src: 'assets/**/*',
|
||||
dest: 'assets',
|
||||
overwrite: false,
|
||||
},
|
||||
],
|
||||
}),
|
||||
@@ -25,7 +24,6 @@ export default defineConfig({
|
||||
'@/lib': resolve('src/lib'),
|
||||
'@/types': resolve('src/types'),
|
||||
'@/operations': resolve('src/operations'),
|
||||
'@/registry': resolve('src/registry'),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -40,7 +38,6 @@ export default defineConfig({
|
||||
'@/lib': resolve('src/lib'),
|
||||
'@/types': resolve('src/types'),
|
||||
'@/operations': resolve('src/operations'),
|
||||
'@/registry': resolve('src/registry'),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -51,7 +48,6 @@ export default defineConfig({
|
||||
'@/lib': resolve('src/lib'),
|
||||
'@/operations': resolve('src/operations'),
|
||||
'@/types': resolve('src/types'),
|
||||
'@/registry': resolve('src/registry'),
|
||||
},
|
||||
},
|
||||
plugins: [react()],
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"build": "turbo run build",
|
||||
"clean": "turbo run clean",
|
||||
"dev": "turbo run dev",
|
||||
"watch": "turbo watch build --filter=@colanode/core --filter=@colanode/crdt --filter=@colanode/server --filter=@colanode/desktop",
|
||||
"watch": "turbo watch build --filter=@colanode/{core,crdt,server}",
|
||||
"lint": "turbo run lint --parallel",
|
||||
"test": "turbo run test -- --watch false",
|
||||
"format": "prettier --write ."
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", "out/**"]
|
||||
"outputs": ["dist/**", "out/**", "assets/**"]
|
||||
},
|
||||
"lint": {
|
||||
"dependsOn": ["^lint"]
|
||||
|
||||
Reference in New Issue
Block a user