File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " simplelauncher" ,
3- "version" : " 0.1.7 " ,
3+ "version" : " 0.1.8 " ,
44 "description" : " Launcher for SimpleClient" ,
55 "main" : " src/main.js" ,
66 "scripts" : {
1919 },
2020 "homepage" : " https://simpleclient.github.io" ,
2121 "dependencies" : {
22+ "app-root-path" : " ^3.1.0" ,
2223 "child_process" : " ^1.0.2" ,
2324 "dialog-node" : " ^0.2.1" ,
2425 "electron-is-dev" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 11const { platform } = require ( "os" )
22const { join } = require ( "path" )
3- const { env } = require ( "process" )
43const { getDirectory } = require ( "./util" )
5- const { execFile, spawnSync, spawn } = require ( "child_process" )
6- const { existsSync, mkdirSync } = require ( "fs" )
4+ const { execFile, spawnSync } = require ( "child_process" )
5+ const { existsSync, mkdirSync, readFileSync } = require ( "fs" )
6+ const { path } = require ( "app-root-path" )
77
88const repository = 'FabiPunktExe/SimpleLauncher'
99
1010const log = ( ...data ) => console . log ( '[Updater] ' + data )
1111
1212function getLocalVersion ( ) {
13- return env . npm_package_version
13+ const file = join ( path , 'package.json' )
14+ return JSON . parse ( readFileSync ( file ) ) . version ;
1415}
1516
1617async function getRemoteVersion ( ) {
You can’t perform that action at this time.
0 commit comments