tracking-exposed / trex

youtube & tiktok analysis + youchoose recommendation custmizer. backend, extensions, and tooling
https://docs.tracking.exposed
GNU Affero General Public License v3.0
55 stars 15 forks source link

guardoni testing and bug report #558

Closed vecna closed 2 years ago

vecna commented 2 years ago

while testing #548 , guardoni-cli

when executing scripts or guardoni, I fail to understand if I'm running the development version or the production version. the only way I've to understand it is when I see the failures and the correspondent backend configured.

it also happens in my daily and master branch

building the guardoni for linux is giving the errpr below, does it rings any bell?

v@NN:~/Dev/yttrex/platforms/guardoni$ npm run dist:linux

> guardoni@2.6.0 dist:linux
> electron-builder build -l

  • electron-builder  version=23.0.8 os=5.15.0-37-generic
  • loaded configuration  file=/home/v/Dev/yttrex/platforms/guardoni/electron-builder.yml
  • writing effective config  file=dist/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=leveldown@5.6.0 platform=linux arch=x64
  • packaging       platform=linux arch=x64 electron=16.1.0 appOutDir=dist/linux-unpacked
  ⨯ Application entry file "build/electron/main.js" in the "/home/v/Dev/yttrex/platforms/guardoni/dist/linux-unpacked/resources/app.asar" does not exist. Seems like a wrong configuration.  failedTask=build stackTrace=Error: Application entry file "build/electron/main.js" in the "/home/v/Dev/yttrex/platforms/guardoni/dist/linux-unpacked/resources/app.asar" does not exist. Seems like a wrong configuration.
    at error (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/asar/asarFileChecker.ts:7:12)
    at Object.checkFileInArchive (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/asar/asarFileChecker.ts:31:11)
    at LinuxPackager.checkFileInPackage (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/platformPackager.ts:503:7)
    at LinuxPackager.sanityCheckPackage (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/platformPackager.ts:551:5)
    at LinuxPackager.doPack (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/platformPackager.ts:312:5)
    at LinuxPackager.pack (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/platformPackager.ts:136:5)
    at Packager.doBuild (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/packager.ts:441:9)
    at Object.executeFinally (/home/v/Dev/yttrex/node_modules/builder-util/src/promise.ts:12:14)
    at Packager._build (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/packager.ts:376:31)
    at Packager.build (/home/v/Dev/yttrex/node_modules/app-builder-lib/src/packager.ts:337:12)
    at Object.executeFinally (/home/v/Dev/yttrex/node_modules/builder-util/src/promise.ts:12:14)
npm ERR! Lifecycle script `dist:linux` failed with error: 
npm ERR! Error: command failed 
npm ERR!   in workspace: guardoni@2.6.0 
npm ERR!   at location: /home/v/Dev/yttrex/platforms/guardoni 
v@NN:~/Dev/yttrex/platforms/guardoni$ 
vecna commented 2 years ago

from platforms/guardoni npm run dist:all doesn't work anymore

vecna commented 2 years ago

as part of re-testing these notes, I'm compiling this README https://github.com/tracking-exposed/trex/pull/606/commits/4d08780c0fe2cdd16557b6186dabffaffbeb1005