Skip to content

Commit

Permalink
Fixed platform difference in app.asar
Browse files Browse the repository at this point in the history
- Created osxapp.asar and winapp.asar for each platform
- Switched "pepflashplayer.dll" to "PepperFlashPlayer.plugin" in `assets/osxapp.asar/config.js` (line 17)
- Tested Jam on macOS and Windows
  • Loading branch information
ganiskowicz authored and 0xSxip committed Dec 1, 2024
1 parent 84507db commit e3d8f70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules/
build/
dev-app-update.yml
plugin_packages/
.DS_Store
.DS_Store
assets/winapp/
assets/osxapp/
Binary file added assets/osxapp.asar
Binary file not shown.
Binary file renamed assets/app.asar → assets/winapp.asar
Binary file not shown.
4 changes: 2 additions & 2 deletions src/electron/renderer/application/patcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ module.exports = class Patcher {
const asarPath = path.join(ANIMAL_JAM_CLASSIC_BASE_PATH, 'resources', 'app.asar')
const backupAsarPath = `${asarPath}.unpatched`
const customAsarPath = process.platform == 'win32'
? path.join('assets', 'app.asar')
? path.join('assets', 'winapp.asar')
: process.platform == 'darwin'
? path.join(__dirname, '..', '..', '..', '..', '..', '..', '..', 'assets', 'app.asar')
? path.join(__dirname, '..', '..', '..', '..', '..', '..', '..', 'assets', 'osxapp.asar')
: undefined

try {
Expand Down

0 comments on commit e3d8f70

Please sign in to comment.