-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from SkywardAI/distribution
try electron distribution
- Loading branch information
Showing
10 changed files
with
2,092 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ pnpm-debug.log* | |
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
dist* | ||
*.local | ||
build | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
appId: com.skywardai.chat # Change this to your app's unique ID | ||
productName: SkywardaiChat # Name of the application | ||
|
||
directories: | ||
output: dist-electron # Where the built files will be stored | ||
|
||
files: | ||
- dist/**/* # Include everything in the dist folder generated by Vite | ||
# - node_modules/**/* # Include necessary node modules | ||
# - package.json | ||
- electron.js | ||
|
||
win: | ||
target: | ||
- nsis # Windows installer type, you can use zip, nsis, etc. | ||
icon: assets/icon.png | ||
|
||
mac: | ||
target: | ||
- dmg # macOS installer type | ||
icon: assets/icon.png | ||
|
||
linux: | ||
target: | ||
- AppImage | ||
# - deb # You can also specify 'deb', 'rpm', etc. | ||
icon: assets/icon.png | ||
|
||
nsis: | ||
oneClick: true # Whether the installer is one-click | ||
allowElevation: true # Allow requests for elevation (admin privileges) | ||
allowToChangeInstallationDirectory: true # Let the user change the install directory | ||
createDesktopShortcut: true # Create desktop shortcut after installation | ||
createStartMenuShortcut: true # Create start menu shortcut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
{ | ||
"name": "vite-test", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"name": "shibuya", | ||
"author": { | ||
"name": "Bohan Cheng", | ||
"email": "[email protected]" | ||
}, | ||
"version": "0.1.0", | ||
"main": "electron.js", | ||
"scripts": { | ||
"dev": "npm run start & npm run electron", | ||
"start": "vite", | ||
"build": "vite build", | ||
"build-electron": "electron-builder -c", | ||
"lint": "eslint .", | ||
"preview": "vite preview", | ||
"electron": "electron ." | ||
|
@@ -29,6 +32,7 @@ | |
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"electron": "^32.0.0", | ||
"electron-builder": "^25.0.5", | ||
"eslint": "^9.9.0", | ||
"eslint-plugin-react": "^7.35.0", | ||
"eslint-plugin-react-hooks": "^5.1.0-rc.0", | ||
|
Oops, something went wrong.