FherStk / marvelsnaptracker-for-ubuntu

An Ubuntu app builder for the Marvel Snap Tracker repo (https://github.com/Razviar/marvelsnaptracker)
GNU Affero General Public License v3.0
4 stars 2 forks source link

release 1.2.4 : error during run package #5

Closed feydreva closed 1 year ago

feydreva commented 1 year ago

Hello

thank you for your script. I was able to follow instruction and build for my linux system. It work perfect for 1.1.8

but now they release 1.2.4

When I run the npm run package command i now get error.

looks like some dll and pdb are missing.. dll are windows file, not linux. Any idea on how to solve that ? Do you encounter the same issue on your ubuntu build ?

Thank you for your help and future feedback

[feydreva@spychea marvelsnaptracker]$ npm run package

> marvelsnaptracker@1.2.4 package
> electron-forge package

✔ Checking your system
✔ Preparing to package application
❯ Running packaging hooks
  ✔ Running generateAssets hook
  ❯ Running prePackage hook
    ✔ [plugin-webpack] Preparing native dependencies
    ✖ [plugin-webpack] Building webpack bundles
      › Compilation errors in the main process: assets by status 834 KiB [cached] 4 assets
        orphan modules 361 KiB [orphan] 127 modules
        runtime modules 1.06 KiB 6 modules
        built modules 1.44 MiB [built]
        modules by path ./node_modules/ 1.08 MiB 57 modules
        modules by path ./src/ 368 KiB
        modules by path ./src/our-active-win/ 2.28 KiB
        ./src/our-active-win/index.js 471 bytes [built] [code generated]
        ./src/our-active-win/lib/macos.js 980 bytes [built] [code generated]
        ./src/our-active-win/lib/windows.js 653 bytes [built] [code generated]
        ./src/our-active-win/lib/windows-emit.js 233 bytes [built] [code generated]
        ./src/main.ts + 124 modules 364 KiB [not cacheable] [built] [code generated]
        ./src/electron-squirrel-startup/index.js 915 bytes [built] [code generated]
        ./src/statics/icon.ico 62 bytes [built] [code generated]
        + 12 modules
        ERROR in unable to locate '/home/feydreva/marvelsnaptracker/src/our-active-win/*.dll*' glob
        ERROR in unable to locate '/home/feydreva/marvelsnaptracker/src/our-active-win/*.pdb*' glob
        webpack 5.76.2 compiled with 2 errors in 8556 ms
◼ Packaging application
◼ Running postPackage hook

An unhandled rejection has occurred inside Forge:
Error: Compilation errors in the main process: assets by status 834 KiB [cached] 4 assets
orphan modules 361 KiB [orphan] 127 modules
runtime modules 1.06 KiB 6 modules
built modules 1.44 MiB [built]
  modules by path ./node_modules/ 1.08 MiB 57 modules
  modules by path ./src/ 368 KiB
    modules by path ./src/our-active-win/ 2.28 KiB
      ./src/our-active-win/index.js 471 bytes [built] [code generated]
      ./src/our-active-win/lib/macos.js 980 bytes [built] [code generated]
      ./src/our-active-win/lib/windows.js 653 bytes [built] [code generated]
      ./src/our-active-win/lib/windows-emit.js 233 bytes [built] [code generated]
    ./src/main.ts + 124 modules 364 KiB [not cacheable] [built] [code generated]
    ./src/electron-squirrel-startup/index.js 915 bytes [built] [code generated]
    ./src/statics/icon.ico 62 bytes [built] [code generated]
  + 12 modules

ERROR in unable to locate '/home/feydreva/marvelsnaptracker/src/our-active-win/*.dll*' glob

ERROR in unable to locate '/home/feydreva/marvelsnaptracker/src/our-active-win/*.pdb*' glob

webpack 5.76.2 compiled with 2 errors in 8556 ms
at cb (/home/feydreva/marvelsnaptracker/node_modules/@electron-forge/plugin-webpack/dist/WebpackPlugin.js:163:43)
    at finalCallback (/home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compiler.js:441:32)
    at /home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compiler.js:458:13
    at Hook.eval [as callAsync] (eval at create (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/Hook.js:18:14)
    at onCompiled (/home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compiler.js:456:21)
    at /home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compiler.js:1196:17
    at Hook.eval [as callAsync] (eval at create (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/Hook.js:18:14)
    at /home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compiler.js:1192:33
    at finalCallback (/home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compilation.js:2787:11)
    at /home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compilation.js:3092:11
    at Hook.eval [as callAsync] (eval at create (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/Hook.js:18:14)
    at /home/feydreva/marvelsnaptracker/node_modules/webpack/lib/Compilation.js:3085:38
    at eval (eval at create (/home/feydreva/marvelsnaptracker/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:17:1)
FherStk commented 1 year ago

Hi, I got the same error... I'll have to check why is this happening, maybe I should compile something first using dotnet or mono. I will investigate, but please be patient, I won't have much free time this month :(

FherStk commented 1 year ago

Sorry for the delay, but the issue has been fixed!

I just created dummy dll and pbd files within the src/our-active-win, and the compilation process completed with no errors. I guess that those files are mandatory for Windows builds, and the compilation process fails if no file is found; but those files are not needed for a GNU/Linux compilation, so I guess that are not being used (because are empty files) and the compilation process ends with no error.

Sorry for the inconveniences, I hope you can enjoy the tracker as expected.