Skip to content

Commit

Permalink
get neurodeskapp version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
iishiishii committed Sep 27, 2023
1 parent 4273a50 commit a4c9708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/copyassets.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function copyAssests() {
path.join(dest, '../app-assets', 'neurodesk.svg')
);
fs.copySync('neurodesktop.toml', path.join(dest, 'neurodesktop.toml'));
fs.copySync('package.json', path.join(dest, 'package.json'));

const toolkitPath = path.join(
'../node_modules',
Expand Down
4 changes: 1 addition & 3 deletions src/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ import { EventTypeMain, EventTypeRenderer } from './eventtypes';
import { SettingsDialog } from './settingsdialog/settingsdialog';
import { AboutDialog } from './aboutdialog/aboutdialog';
import { AuthDialog } from './authdialog/authdialog';
import { Config } from './utils';
import * as path from 'path';

const config = Config.loadConfig(path.join(__dirname, '..'));
const release = config.ConfigToml.neurodesk_desktop_release;
const release = require(path.join(__dirname, '..', 'package.json')).version;

export interface IApplication {
createNewEmptySession(): void;
Expand Down

0 comments on commit a4c9708

Please sign in to comment.