[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor: Update flatpak build

* Update flatpak build instructions to use build
* Add run command to readme
* Update default config to keep web port backwards compatible
* Fix flatpak application name in run command in installation docs

FoxxMD (Aug 29, 2023, 9:35 AM EDT) 8f2e1ad7 ed6bcd60

+20 -13
+1 -1
docsite/docs/installation/installation.md
··· 53 53 The config directory for multi-scrobbler as a flatpak can be found under `/home/YourUser/.var/app/io.github.foxxmd.multiscrobbler/config` 54 54 55 55 ```shell 56 - flatpak run io.github.multiscrobbler 56 + flatpak run io.github.foxxmd.multiscrobbler 57 57 ``` 58 58 59 59 #### Using [env-based](../configuration/configuration.md#env-based-configuration) configuration
+9 -2
flatpak/README.md
··· 24 24 25 25 Then, from MS project root: 26 26 27 - ``` 27 + ```shell 28 28 flatpak-node-generator npm package-lock.json 29 29 ``` 30 30 ··· 34 34 35 35 From MS project root: 36 36 37 - ```console 37 + ```shell 38 38 cd flatpak 39 39 flatpak-builder --repo=/home/yourUser/multi-scrobbler-repo /home/yourUser/multi-scrobbler-build io.github.foxxmd.multiscrobbler.yml --force-clean 40 40 ``` 41 41 Add `--install --user` to have the app installed immediately. 42 + # 5. Run (Locally) 43 + 44 + If built with `--install --user` you can now run MS using the command 45 + 46 + ```shell 47 + flatpak run -u io.github.foxxmd.multiscrobbler 48 + ```
+2 -1
flatpak/defaultConfig.json
··· 1 1 { 2 2 "logging": { 3 3 "file": false 4 - } 4 + }, 5 + "port": 9078 5 6 }
+8 -9
flatpak/io.github.foxxmd.multiscrobbler.yml
··· 24 24 - npm install --offline 25 25 26 26 # build app 27 - - npm run build 27 + - NODE_ENV=production npm run build 28 28 29 29 # makes node and npm available 30 - - mkdir -p /app/bin /app/lib /app/lib/src 30 + - mkdir -p /app/bin /app/lib /app/lib/build 31 31 - cp -a /usr/lib/sdk/node18/bin/{node,npm} /app/bin 32 32 - cp -a /usr/lib/sdk/node18/lib/* /app/lib 33 33 - rm -r /app/lib/node_modules/npm/{docs,man} ··· 38 38 # copy node_modules needed to run app 39 39 - cp -r node_modules/* /app/lib/node_modules 40 40 41 - # delete typescript files (not needed for running app) 42 - - find src/ -name "*.ts" -type f -delete 43 - 44 41 # copy app files to runtime dir 45 - - cp -r src/* /app/lib/src 42 + - cp -r build/* /app/lib/build 46 43 - cp -r config /app/lib/config 47 44 - cp flatpak/defaultConfig.json /app/lib/config/config.json 48 45 ··· 56 53 sources: 57 54 - type: git 58 55 url: https://github.com/FoxxMD/multi-scrobbler 59 - tag: 0.4.6 60 - commit: b90ea039245491767baeefc53966b0350016aa4d 56 + branch: develop 57 + # in official builds use tag/commit instead of branch 58 + # tag: 0.4.6 59 + # commit: ed6bcd60b3448397424ed7c14075479452ff566f 61 60 dest: main 62 61 # Wrapper to launch the app 63 62 - type: script ··· 73 72 cp -r /app/lib/config/. "${XDG_CONFIG_HOME}"/ 74 73 #cp /app/lib/defaultConfig.json $XDG_CONFIG_HOME/config.json 75 74 fi 76 - - cd /app/lib && CONFIG_DIR=$XDG_CONFIG_HOME IS_LOCAL=true node src/index.js 75 + - cd /app/lib && CONFIG_DIR=$XDG_CONFIG_HOME IS_LOCAL=true NODE_ENV=production node build/server.js 77 76 78 77 - generated-sources.json