This commit is contained in:
Mylloon 2023-07-29 15:38:03 +02:00
parent 40beeedf1a
commit 03618b22e3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 3 additions and 13 deletions

3
.gitignore vendored
View file

@ -1,4 +1,3 @@
/node_modules /node_modules
/dist /dist
/out
out/

View file

@ -4,7 +4,7 @@
- [ ] If already under the limit, the file won't be compressed - [ ] If already under the limit, the file won't be compressed
- [ ] Merge all audio files into one track <!-- ffmpeg -i in.mp4 -filter_complex "[0:a]amerge=inputs=2[a]" -ac 1 -map 0:v -map "[a]" -c:v copy out.mp4 --> - [ ] Merge all audio files into one track <!-- ffmpeg -i in.mp4 -filter_complex "[0:a]amerge=inputs=2[a]" -ac 1 -map 0:v -map "[a]" -c:v copy out.mp4 -->
## Dev ## Package the app for Windows
```bash ```bash
npm install npm install

View file

@ -2,19 +2,13 @@
<html> <html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta <meta
http-equiv="Content-Security-Policy" http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'" content="default-src 'self'; script-src 'self'"
/> />
<title>Hello World!</title> <title>Discord Video Sharing</title>
</head> </head>
<body> <body>
<h1>Hello World!</h1>
Nous utilisons Node.js <span id="node-version"></span>, Chromium
<span id="chrome-version"></span>, et Electron
<span id="electron-version"></span>.
<script src="../dist/renderer.js"></script> <script src="../dist/renderer.js"></script>
</body> </body>
</html> </html>

View file

@ -14,9 +14,6 @@ const createWindow = () => {
win.loadFile(path.join(path.resolve(__dirname, ".."), "pages", "index.html")); win.loadFile(path.join(path.resolve(__dirname, ".."), "pages", "index.html"));
}; };
// Fix crash on Windows
app.commandLine.appendSwitch("disable-gpu-sandbox");
app.whenReady().then(() => { app.whenReady().then(() => {
createWindow(); createWindow();