Skip to content

Commit

Permalink
chore: remove simconnect.dll leftovers (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl authored Oct 21, 2023
1 parent 9aec31a commit 1fb3476
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion apps/server/src/utilities/systray.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { hideConsole, showConsole } from 'node-hide-console-window';
import open = require('open');
import SysTray, { MenuItem } from 'systray2';
import { join } from 'path';
import { getExecutablePath } from 'apps/server/src/utilities/pathUtil';
import { NetworkService } from './network.service';
import serverConfig from '../config/server.config';
import { ShutDownService } from './shutdown.service';
Expand Down Expand Up @@ -33,7 +34,7 @@ export class SysTrayService implements OnApplicationShutdown {
this.exitItem,
],
},
copyDir: true,
copyDir: getExecutablePath(),
});

this.sysTray.onClick((action) => {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
"install:exec": "node doExe.mjs && npm run copy:deps && npm run build:package",
"copy:deps": "npm run copy:resources && npm run copy:modules && copyfiles -s -f LICENSE build && npm run fetch:terrain",
"copy:resources": "copyfiles -s -f apps/server/src/config/properties.json ./node_modules/pdf-to-printer/dist/SumatraPDF.exe build/resources",
"copy:modules": "npm run copy:traybin && npm run copy:pdfjs && npm run copy:nodehide && npm run copy:sharp && npm run copy:simconnect && npm run copy:open",
"copy:traybin": "copyfiles -s -f ./node_modules/systray2/traybin/tray_windows_release.exe build/traybin && copyfiles -s -f \"node_modules/systray2/**/*.*\" build/node_modules/systray2",
"copy:modules": "npm run copy:pdfjs && npm run copy:nodehide && npm run copy:sharp && npm run copy:open",
"copy:pdfjs": "copyfiles -s -f \"node_modules/pdfjs-dist/build/**/*.*\" build/node_modules/pdfjs-dist/build && npm run copy:pdfjs:fonts && npm run copy:pdfjs:cmaps",
"copy:pdfjs:fonts": "copyfiles -s -f \"node_modules/pdfjs-dist/standard_fonts/**/*.*\" build/node_modules/pdfjs-dist/standard_fonts",
"copy:pdfjs:cmaps": "copyfiles -s -f \"node_modules/pdfjs-dist/cmaps/**/*.*\" build/node_modules/pdfjs-dist/cmaps",
"copy:nodehide": "copyfiles -s -f \"node_modules/node-hide-console-window/build/Release/**/*\" build/node_modules/node-hide-console-window/build/Release",
"copy:sharp": "copyfiles -s -f \"node_modules/sharp/build/Release/**/*\" build/node_modules/sharp/build/Release",
"copy:simconnect": "copyfiles -s -f simconnect/SimConnect.dll build",
"copy:open": "copyfiles -s -f \"node_modules/open/xdg-open\" build/node_modules/open",
"fetch:terrain": "node scripts/terrain.js",
"start": "nest start server",
Expand Down Expand Up @@ -202,6 +200,7 @@
"node_modules/bit-twiddle/**/*.*",
"node_modules/@flybywiresim/msfs-nodejs/**/*.*",
"node_modules/es-get-iterator/**/*.*",
"/node_modules/systray2/traybin/*.exe",
"dist/mcdu/**/*",
"dist/assets/**/*",
"dist/terrain/mapdata/**/*.*",
Expand Down
4 changes: 0 additions & 4 deletions scripts/fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const execute = async () => {
name: 'dependencies',
sourceDir: './node_modules',
},
{
name: 'traybin',
sourceDir: './traybin',
},
{
name: 'terrain',
sourceDir: './terrain',
Expand Down
4 changes: 0 additions & 4 deletions simconnect/LICENSE

This file was deleted.

Binary file removed simconnect/SimConnect.dll
Binary file not shown.

0 comments on commit 1fb3476

Please sign in to comment.