Skip to content

Commit

Permalink
fix: πŸ› Bugfix for squirell not running and letting install game
Browse files Browse the repository at this point in the history
βœ… Closes: #72
  • Loading branch information
MadejaMaciej committed Mar 21, 2024
1 parent ba2cf20 commit b31675d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Lost Dutchman Mine Change Log
0.0.2 March 24, 2024
-------------------

- Bug #72: Fix squirrel not installing app (MadejaMaciej)
- Bug #66: Fix player moving in menu and pause screen (MadejaMaciej)
- Enh #30: Moving left and right in town (MadejaMaciej)
- Enh #52: Adjusted font properties (MadejaMaciej)
Expand Down
1 change: 1 addition & 0 deletions code-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@electron-forge/plugin-fuses": "^7.2.0",
"@electron-forge/plugin-webpack": "^7.3.0",
"@electron/fuses": "^1.7.0",
"@types/electron-squirrel-startup": "^1.0.2",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@types/uuid": "^9.0.8",
Expand Down
3 changes: 2 additions & 1 deletion code-desktop/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { app, BrowserWindow } from 'electron';
import squirrel from 'electron-squirrel-startup';
import 'dotenv/config';

// This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Webpack
Expand All @@ -8,7 +9,7 @@ declare const MAIN_WINDOW_WEBPACK_ENTRY: string;
declare const MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: string;

// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require('electron-squirrel-startup')) {
if (squirrel) {
app.quit();
}

Expand Down

0 comments on commit b31675d

Please sign in to comment.