-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
|
||
node_modules | ||
dist | ||
dist-electron | ||
release |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* @see https://www.electron.build/configuration/configuration | ||
*/ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", | ||
"appId": "io.github.langmans.looksmenu-bodyslide-combine", | ||
"productName": "Looksmenu Bodyslide Combine", | ||
"directories": { | ||
"output": "release/${version}" | ||
}, | ||
"files": [ | ||
"dist", | ||
"dist-electron" | ||
], | ||
"mac": { | ||
"target": [ | ||
"dmg" | ||
], | ||
"artifactName": "${productName}-Mac-${version}-Installer.${ext}" | ||
}, | ||
"win": { | ||
"target": [ | ||
{ | ||
"target": "nsis", | ||
"arch": [ | ||
"x64" | ||
] | ||
} | ||
], | ||
"artifactName": "${productName}-Windows-${version}-Setup.${ext}" | ||
}, | ||
"nsis": { | ||
"oneClick": false, | ||
"perMachine": false, | ||
"allowToChangeInstallationDirectory": true, | ||
"deleteAppDataOnUninstall": false | ||
}, | ||
"linux": { | ||
"target": [ | ||
"AppImage" | ||
], | ||
"artifactName": "${productName}-Linux-${version}.${ext}" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import path from 'path'; | ||
import { app, BrowserWindow } from 'electron'; | ||
let win; | ||
async function createWindow() { | ||
win = new BrowserWindow({ | ||
webPreferences: { | ||
preload: path.join(__dirname, './preload.js'), | ||
}, | ||
}); | ||
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve` | ||
if (process.env.VITE_DEV_SERVER_URL) { | ||
await win.loadURL(process.env.VITE_DEV_SERVER_URL); | ||
win.webContents.openDevTools(); | ||
} | ||
else { | ||
// Load your file | ||
await win.loadFile('dist/index.html'); | ||
} | ||
win.maximize(); | ||
win.show(); | ||
} | ||
app.on('window-all-closed', () => { | ||
app.quit(); | ||
win = null; | ||
}); | ||
app.whenReady().then(createWindow); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import path from 'path' | ||
import {app, BrowserWindow} from 'electron' | ||
import Remote from "@electron/remote/main"; | ||
|
||
Remote.initialize(); | ||
|
||
let win: BrowserWindow | null = null | ||
|
||
async function createWindow() { | ||
win = new BrowserWindow({ | ||
autoHideMenuBar: true, | ||
webPreferences: { | ||
preload: path.join(__dirname, './preload.js'), | ||
nodeIntegration: true, | ||
// enableRemoteModule: true, | ||
contextIsolation: false, | ||
}, | ||
}) | ||
|
||
Remote.enable(win.webContents); | ||
|
||
// win.setMenu(null) | ||
// win.maximize() | ||
win.show() | ||
|
||
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve` | ||
if (process.env.VITE_DEV_SERVER_URL) { | ||
await win.loadURL(process.env.VITE_DEV_SERVER_URL) | ||
win.webContents.openDevTools() | ||
} else { | ||
// Load your file | ||
await win.loadFile('dist/index.html'); | ||
} | ||
} | ||
|
||
app.on('window-all-closed', () => { | ||
app.quit() | ||
win = null | ||
}) | ||
|
||
app.whenReady().then(createWindow) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="http://localhost:8098"></script> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>BodySlide + LooksMenu Combine</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "looksmenu-bodyslide-combine", | ||
"description": "Combines Looksmenu and Bodyslide presets into new Looksmenu presets", | ||
"author": "langmans", | ||
"version": "1.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"main": "dist-electron/main.js", | ||
"scripts": { | ||
"devtools": "./node_modules/.bin/vue-devtools", | ||
"dev": "vite", | ||
"build": "vite build && electron-builder" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@electron/remote": "^2.1.2", | ||
"@vitejs/plugin-vue": "^5.0.4", | ||
"@vue/devtools": "^7.1.3", | ||
"@vueuse/core": "^10.9.0", | ||
"client-zip": "^2.4.5", | ||
"electron": "^30.0.2", | ||
"electron-builder": "^24.13.3", | ||
"file-saver": "^2.0.5", | ||
"primevue": "^3.52.0", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11", | ||
"vite-plugin-electron": "^0.28.7", | ||
"vite-plugin-electron-renderer": "^0.14.5", | ||
"vue": "^3.4.27" | ||
} | ||
} |