moode-player / pkgbuild

Scripts to build third-party packages for moOde
GNU General Public License v3.0
4 stars 4 forks source link

Trying to compile from scratch #7

Open psych0d0g opened 1 year ago

psych0d0g commented 1 year ago

im trying to get moode to compile from scratch on a vanilla debian bullseye, getting up to some npm things and then it fails with:

[17:42:03] Finished 'deploy' after 750 ms
SQL database location is '/pkgbuild/packages/moode-player/build/moode-sqlite3.db'
Station logos location is '/root/moode.dev/moode/var/local/www/imagesw/radio-logos'
Export station data
Export station logos
Error: radio station base backup ../dist/binary/moode-stations-full_8.0.0.zip not found!
The command '/bin/sh -c /bin/bash && . pkgbuild/scripts/setenv.sh.example &&     /bin/bash && cd pkgbuild/packages/moode-player &&     ./build.sh' returned a non-zero code: 1

i wasnt able to find any reference in the docs repo to moode-stations-full_8.0.0.zip, is there something missing? where do i get that zip file from?

moodeaudio commented 1 year ago

The dev docs have not been updated in a while and the TODO list item to do so is not getting much priority these days. I'll make an effort.

The commands below should get you going.

# Seed the radio station base zip before initial moode-player package build
cd ~/pkgbuild/packages/moode-player
mkdir dist
mkdir dist/binary
cd dist/binary
wget --no-verbose https://dl.cloudsmith.io/public/moodeaudio/m8y/raw/files/moode-stations-full_8.0.0.zip
cd ../..
psych0d0g commented 1 year ago

hmm, i see, for now i removed the corresponding lines that create "update patch" zip files from the build.sh as another workaround, since i dont really know the mechanics behind the patching system for the radio stations, would it be feasible to incorporate the wget command into the normal build.sh to download the last full major version zip if one is building outside of a moode environment?

something like this: https://github.com/moode-player/pkgbuild/pull/8/files#diff-b3447a5bfa46fba18edc0b57a634f2bdc25ed4d96c4c37a454b9e33446f415f9R118