Build(Builder): Update config

This commit is contained in:
2024-06-13 18:31:08 +08:00
parent 7d3ec39da3
commit df98339838
5 changed files with 65 additions and 15 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 124 KiB

1
build/icon.svg Normal file
View File

@@ -0,0 +1 @@
<svg id="logo" xmlns="http://www.w3.org/2000/svg" width="911.75" height="898.91" viewBox="0 0 911.75 898.91"><defs><linearGradient id="FillColor" x1="0" x2="50%" y1="50%" y2="0"><stop offset="0%" stop-color="#2af598"/><stop offset="100%" stop-color="#009efd"/></linearGradient></defs><path fill="url(#FillColor)" d="M828.52,831.72c-216,259.7-774.46,115.85-765.17-319.5-19-292.76,370.82-602.09,704.81-367.11,44.53,48.2,81.39,32.52,121.28,46.67,28.28,14.3,21.36,42.61,52.36,142.6,31.6,101.09,60.92,133.92-17.45,182.4-28,11.34-46.6-2.34-117.82-25.31-92-29.65-109-22.33-132.66-48-27.26-29.62-14.42-50.13-41.31-80.13C507.2,259.81,336.39,351,290.74,489.72c-7,26.59-20.37,92.15,8.72,162.38,25.72,62.11,71.11,95.23,99.93,115.7C554.85,878.2,781.33,840.41,828.52,831.72Zm50.11-584.95c-15.4,5.93.73,47,16,40.82C910.07,281.66,893.94,240.63,878.63,246.77Zm-152,180.06c-4.34,15.92,35.73,26.64,39.92,10.68C770.9,421.58,730.83,410.86,726.63,426.83Z" transform="translate(-62.68 -62.16)"/></svg>

After

Width:  |  Height:  |  Size: 978 B

View File

@@ -1,5 +1,7 @@
appId: com.electron.app
productName: oxygen-desktop
copyright: Copyright © 2017-2024 FatWeb. All rights reserved.
appId: top.fatweb.oxygen.desktop
artifactName: ${name}-${version}-${os}-${arch}.${ext}
directories:
buildResources: build
files:
@@ -12,13 +14,35 @@ files:
asarUnpack:
- resources/**
win:
executableName: oxygen-desktop
target:
- target: nsis
arch:
- x64
- ia32
- arm64
- target: msi
arch:
- x64
- ia32
- arm64
- target: zip
arch:
- x64
- ia32
- arm64
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false
allowToChangeInstallationDirectory: true
artifactName: ${name}-${version}-${os}-${arch}-setup.${ext}
shortcutName: Oxygen Desktop
createDesktopShortcut: true
msi:
oneClick: false
shortcutName: Oxygen Desktop
mac:
category: public.app-category.productivity
target:
- default
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
@@ -26,17 +50,37 @@ mac:
- 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
- target: AppImage
arch:
- x64
- arm64
- armv7l
- target: deb
arch:
- x64
- arm64
- armv7l
- target: rpm
arch:
- x64
- arm64
- armv7l
- target: pacman
arch:
- x64
- arm64
- armv7l
- target: tar.gz
arch:
- x64
- arm64
- armv7l
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
desktop:
Name: Oxygen Desktop
Comment: Oxygen Toolbox multi-platform desktop version
npmRebuild: false
publish:
provider: generic

View File

@@ -1,9 +1,14 @@
{
"name": "oxygen-desktop",
"private": true,
"version": "1.0.0-SNAPSHOT",
"description": "Oxygen Toolbox multi-platform desktop version",
"main": "./out/main/index.js",
"author": "FatttSnake",
"author": {
"name": "FatttSnake",
"email": "fatttsnake@fatweb.top",
"url": "https://fatweb.top"
},
"homepage": "https://tool.fatweb.top",
"scripts": {
"dev": "electron-vite dev --sourcemap --remote-debugging-port=9000",