Skip to content

Commit

Permalink
electron
Browse files Browse the repository at this point in the history
  • Loading branch information
Largo committed Apr 17, 2024
1 parent 9bfcd4f commit 1b365e6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
23 changes: 23 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const { app, BrowserWindow } = require('electron')
const createWindow = () => {
const win = new BrowserWindow({
width: 800,
height: 600,
autoHideMenuBar: true,
})

win.loadFile('index.html')
}
app.whenReady().then(() => {
createWindow()
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit()
})
app.whenReady().then(() => {
createWindow()

app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "PsychometricStudyVideoPlayer",
"version": "1.0.0",
"description": "customized video player for special video analysis",
"main": "main.js",
"repository": "https://github.com/Largo/PsychometricStudyVideoPlayer.git",
"author": "Andi <largo@users.noreply.github.com>",
"license": "MIT",
"private": true,
"scripts": {
"start": "electron ."
}
}

0 comments on commit 1b365e6

Please sign in to comment.