diff --git a/.all-contributorsrc b/.all-contributorsrc deleted file mode 100644 index 8f6bf07d1..000000000 --- a/.all-contributorsrc +++ /dev/null @@ -1,665 +0,0 @@ -{ - "files": [ - "README.md" - ], - "imageSize": 100, - "commit": false, - "badgeTemplate": "\"All-orange.svg\"/>", - "contributorsPerLine": 7, - "projectName": "seerr", - "projectOwner": "seerr-team", - "repoType": "github", - "repoHost": "https://github.com", - "skipCi": true, - "commitConvention": "angular", - "commitType": "docs", - "contributors": [ - { - "login": "fallenbagel", - "name": "Fallenbagel", - "avatar_url": "https://avatars.githubusercontent.com/u/98979876?v=4", - "profile": "https://github.com/fallenbagel", - "contributions": [ - "code", - "maintenance" - ] - }, - { - "login": "seanzhang98", - "name": "Sean", - "avatar_url": "https://avatars.githubusercontent.com/u/34902361?v=4", - "profile": "https://github.com/seanzhang98", - "contributions": [ - "translation", - "code" - ] - }, - { - "login": "notfakie", - "name": "notfakie", - "avatar_url": "https://avatars.githubusercontent.com/u/103784113?v=4", - "profile": "https://github.com/notfakie", - "contributions": [ - "code" - ] - }, - { - "login": "Jumail", - "name": "Mohamed Jumail", - "avatar_url": "https://avatars.githubusercontent.com/u/7672055?v=4", - "profile": "https://github.com/Jumail", - "contributions": [ - "review" - ] - }, - { - "login": "jsl9208", - "name": "Shilong Jiang", - "avatar_url": "https://avatars.githubusercontent.com/u/4048787?v=4", - "profile": "https://www.heywhale.com", - "contributions": [ - "code" - ] - }, - { - "login": "boring-dragon", - "name": "Boring Dragon", - "avatar_url": "https://avatars.githubusercontent.com/u/28459081?v=4", - "profile": "https://jinas.me", - "contributions": [ - "code" - ] - }, - { - "login": "sambartik", - "name": "Samuel Bartík", - "avatar_url": "https://avatars.githubusercontent.com/u/63553146?v=4", - "profile": "https://github.com/sambartik", - "contributions": [ - "code" - ] - }, - { - "login": "CyferShepard", - "name": "Thegan Govender", - "avatar_url": "https://avatars.githubusercontent.com/u/24864904?v=4", - "profile": "https://github.com/CyferShepard", - "contributions": [ - "code" - ] - }, - { - "login": "jab416171", - "name": "jab416171", - "avatar_url": "https://avatars.githubusercontent.com/u/345752?v=4", - "profile": "https://github.com/jab416171", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "NicolaiVdS", - "name": "Nicolai Van der Storm", - "avatar_url": "https://avatars.githubusercontent.com/u/5257222?v=4", - "profile": "https://nvds.be", - "contributions": [ - "code" - ] - }, - { - "login": "Smexhy", - "name": "Smexhy", - "avatar_url": "https://avatars.githubusercontent.com/u/4880625?v=4", - "profile": "https://github.com/Smexhy", - "contributions": [ - "translation" - ] - }, - { - "login": "dd060606", - "name": "dd060606", - "avatar_url": "https://avatars.githubusercontent.com/u/58089504?v=4", - "profile": "https://dd06-dev.fr", - "contributions": [ - "code" - ] - }, - { - "login": "darmiel", - "name": "Daniel", - "avatar_url": "https://avatars.githubusercontent.com/u/71837281?v=4", - "profile": "https://qwer.tz", - "contributions": [ - "code" - ] - }, - { - "login": "undone37", - "name": "undone37", - "avatar_url": "https://avatars.githubusercontent.com/u/10513808?v=4", - "profile": "https://github.com/undone37", - "contributions": [ - "translation" - ] - }, - { - "login": "CheChu10", - "name": "Chechu García", - "avatar_url": "https://avatars.githubusercontent.com/u/32913133?v=4", - "profile": "https://github.com/CheChu10", - "contributions": [ - "translation" - ] - }, - { - "login": "DimitriDR", - "name": "Dimitri", - "avatar_url": "https://avatars.githubusercontent.com/u/56969769?v=4", - "profile": "https://github.com/DimitriDR", - "contributions": [ - "translation" - ] - }, - { - "login": "andrey4korop", - "name": "andrey4korop", - "avatar_url": "https://avatars.githubusercontent.com/u/24610708?v=4", - "profile": "https://github.com/andrey4korop", - "contributions": [ - "code", - "translation" - ] - }, - { - "login": "GeoffreyCoulaud", - "name": "Geoffrey Coulaud", - "avatar_url": "https://avatars.githubusercontent.com/u/20744730?v=4", - "profile": "https://geoffrey-coulaud.fr", - "contributions": [ - "translation" - ] - }, - { - "login": "Pikachu920", - "name": "Pikachu920", - "avatar_url": "https://avatars.githubusercontent.com/u/28607612?v=4", - "profile": "https://github.com/Pikachu920", - "contributions": [ - "code" - ] - }, - { - "login": "yalagin", - "name": "Maxim Yalagin", - "avatar_url": "https://avatars.githubusercontent.com/u/12879142?v=4", - "profile": "https://github.com/yalagin", - "contributions": [ - "code" - ] - }, - { - "login": "jeaboswell", - "name": "Jesse Boswell", - "avatar_url": "https://avatars.githubusercontent.com/u/11653068?v=4", - "profile": "https://github.com/jeaboswell", - "contributions": [ - "code" - ] - }, - { - "login": "d-fendrich", - "name": "d-fendrich", - "avatar_url": "https://avatars.githubusercontent.com/u/27904138?v=4", - "profile": "https://github.com/d-fendrich", - "contributions": [ - "translation" - ] - }, - { - "login": "davidfdezalcoba", - "name": "David Fernández Alcoba", - "avatar_url": "https://avatars.githubusercontent.com/u/15996018?v=4", - "profile": "https://github.com/davidfdezalcoba", - "contributions": [ - "code" - ] - }, - { - "login": "Gauvino", - "name": "Gauvino", - "avatar_url": "https://avatars.githubusercontent.com/u/68083474?v=4", - "profile": "https://github.com/Gauvino", - "contributions": [ - "translation" - ] - }, - { - "login": "EthanArmbrust", - "name": "EthanArmbrust", - "avatar_url": "https://avatars.githubusercontent.com/u/22754714?v=4", - "profile": "https://github.com/EthanArmbrust", - "contributions": [ - "code" - ] - }, - { - "login": "SirMartin", - "name": "Eduardo", - "avatar_url": "https://avatars.githubusercontent.com/u/854646?v=4", - "profile": "http://www.piribisoft.com", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "RickLuiken", - "name": "RickLuiken", - "avatar_url": "https://avatars.githubusercontent.com/u/34110371?v=4", - "profile": "https://github.com/RickLuiken", - "contributions": [ - "code" - ] - }, - { - "login": "Br33ce", - "name": "Br33ce", - "avatar_url": "https://avatars.githubusercontent.com/u/124933490?v=4", - "profile": "https://github.com/Br33ce", - "contributions": [ - "translation" - ] - }, - { - "login": "athphane", - "name": "Athfan Khaleel", - "avatar_url": "https://avatars.githubusercontent.com/u/13810742?v=4", - "profile": "https://athfan.com", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "mdll23", - "name": "Michael Dallinger", - "avatar_url": "https://avatars.githubusercontent.com/u/142844478?v=4", - "profile": "https://github.com/mdll23", - "contributions": [ - "translation" - ] - }, - { - "login": "xeruf", - "name": "Janek", - "avatar_url": "https://avatars.githubusercontent.com/u/13354331?v=4", - "profile": "https://github.com/xeruf", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "aleksasiriski", - "name": "Aleksa Siriški", - "avatar_url": "https://avatars.githubusercontent.com/u/31509435?v=4", - "profile": "https://aleksasiriski.dev", - "contributions": [ - "infra" - ] - }, - { - "login": "Danish-H", - "name": "Danish Humair", - "avatar_url": "https://avatars.githubusercontent.com/u/121830048?v=4", - "profile": "http://danishhumair.com", - "contributions": [ - "code" - ] - }, - { - "login": "trackmastersteve", - "name": "Stephen Harris", - "avatar_url": "https://avatars.githubusercontent.com/u/16858514?v=4", - "profile": "https://arm0.red", - "contributions": [ - "doc" - ] - }, - { - "login": "joshuaboniface", - "name": "Joshua M. Boniface", - "avatar_url": "https://avatars.githubusercontent.com/u/4031396?v=4", - "profile": "https://www.boniface.me", - "contributions": [ - "code" - ] - }, - { - "login": "gauthier-th", - "name": "Gauthier", - "avatar_url": "https://avatars.githubusercontent.com/u/37781713?v=4", - "profile": "https://gauthierth.fr/", - "contributions": [ - "code", - "maintenance" - ] - }, - { - "login": "Kara-Zor-El", - "name": "Kara", - "avatar_url": "https://avatars.githubusercontent.com/u/69772087?v=4", - "profile": "https://github.com/Kara-Zor-El", - "contributions": [ - "infra" - ] - }, - { - "login": "JoaquinOlivero", - "name": "Joaquin Olivero", - "avatar_url": "https://avatars.githubusercontent.com/u/66050823?v=4", - "profile": "https://joaquinolivero.com", - "contributions": [ - "code" - ] - }, - { - "login": "Bretterteig", - "name": "Julian Behr", - "avatar_url": "https://avatars.githubusercontent.com/u/47298401?v=4", - "profile": "https://github.com/Bretterteig", - "contributions": [ - "translation" - ] - }, - { - "login": "ThowZzy", - "name": "ThowZzy", - "avatar_url": "https://avatars.githubusercontent.com/u/61882536?v=4", - "profile": "https://github.com/ThowZzy", - "contributions": [ - "code" - ] - }, - { - "login": "mobihen", - "name": "Nir Israel Hen", - "avatar_url": "https://avatars.githubusercontent.com/u/35529491?v=4", - "profile": "https://mobihen.com", - "contributions": [ - "translation" - ] - }, - { - "login": "XDark187", - "name": "Baraa", - "avatar_url": "https://avatars.githubusercontent.com/u/39034192?v=4", - "profile": "https://github.com/XDark187", - "contributions": [ - "code" - ] - }, - { - "login": "franciscofsales", - "name": "Francisco Sales", - "avatar_url": "https://avatars.githubusercontent.com/u/7977645?v=4", - "profile": "https://github.com/franciscofsales", - "contributions": [ - "code" - ] - }, - { - "login": "myselfolli", - "name": "Oliver Laing", - "avatar_url": "https://avatars.githubusercontent.com/u/37535998?v=4", - "profile": "https://github.com/myselfolli", - "contributions": [ - "code" - ] - }, - { - "login": "M0NsTeRRR", - "name": "Ludovic Ortega", - "avatar_url": "https://avatars.githubusercontent.com/u/37785089?v=4", - "profile": "https://github.com/M0NsTeRRR", - "contributions": [ - "security" - ] - }, - { - "login": "Zariel", - "name": "Chris Bannister", - "avatar_url": "https://avatars.githubusercontent.com/u/2213?v=4", - "profile": "https://github.com/Zariel", - "contributions": [ - "code" - ] - }, - { - "login": "C4J3", - "name": "Joe", - "avatar_url": "https://avatars.githubusercontent.com/u/13005453?v=4", - "profile": "https://github.com/C4J3", - "contributions": [ - "doc" - ] - }, - { - "login": "guillaumearnx", - "name": "Guillaume ARNOUX", - "avatar_url": "https://avatars.githubusercontent.com/u/37373941?v=4", - "profile": "https://me.garnx.fr", - "contributions": [ - "code" - ] - }, - { - "login": "dr-carrot", - "name": "dr-carrot", - "avatar_url": "https://avatars.githubusercontent.com/u/17272571?v=4", - "profile": "https://github.com/dr-carrot", - "contributions": [ - "code" - ] - }, - { - "login": "gageorsburn", - "name": "Gage Orsburn", - "avatar_url": "https://avatars.githubusercontent.com/u/4692734?v=4", - "profile": "https://github.com/gageorsburn", - "contributions": [ - "code" - ] - }, - { - "login": "GkhnGRBZ", - "name": "GkhnGRBZ", - "avatar_url": "https://avatars.githubusercontent.com/u/127258824?v=4", - "profile": "https://github.com/GkhnGRBZ", - "contributions": [ - "code" - ] - }, - { - "login": "benhaney", - "name": "Ben Haney", - "avatar_url": "https://avatars.githubusercontent.com/u/31331498?v=4", - "profile": "http://benhaney.com", - "contributions": [ - "code" - ] - }, - { - "login": "Wunderharke", - "name": "Wunderharke", - "avatar_url": "https://avatars.githubusercontent.com/u/5105672?v=4", - "profile": "https://github.com/Wunderharke", - "contributions": [ - "doc" - ] - }, - { - "login": "methbkts", - "name": "Metin Bektas", - "avatar_url": "https://avatars.githubusercontent.com/u/30674934?v=4", - "profile": "https://github.com/methbkts", - "contributions": [ - "infra" - ] - }, - { - "login": "andrewkolda", - "name": "andrewkolda", - "avatar_url": "https://avatars.githubusercontent.com/u/158614532?v=4", - "profile": "https://github.com/andrewkolda", - "contributions": [ - "design" - ] - }, - { - "login": "ishanjain28", - "name": "Ishan Jain", - "avatar_url": "https://avatars.githubusercontent.com/u/7921368?v=4", - "profile": "https://ishanjain.me", - "contributions": [ - "code" - ] - }, - { - "login": "michaelhthomas", - "name": "Michael Thomas", - "avatar_url": "https://avatars.githubusercontent.com/u/18223295?v=4", - "profile": "http://michaelt.xyz", - "contributions": [ - "code" - ] - }, - { - "login": "RankWeis", - "name": "RankWeis", - "avatar_url": "https://avatars.githubusercontent.com/u/733691?v=4", - "profile": "https://github.com/RankWeis", - "contributions": [ - "code" - ] - }, - { - "login": "jessielw", - "name": "Jessie Wilson", - "avatar_url": "https://avatars.githubusercontent.com/u/48299282?v=4", - "profile": "http://www.linkedin.com/in/jessielwilson", - "contributions": [ - "code" - ] - }, - { - "login": "brotaxt", - "name": "DominicKo", - "avatar_url": "https://avatars.githubusercontent.com/u/25477935?v=4", - "profile": "https://github.com/brotaxt", - "contributions": [ - "code" - ] - }, - { - "login": "corentinnormand", - "name": "Corentin Normand", - "avatar_url": "https://avatars.githubusercontent.com/u/30508927?v=4", - "profile": "https://doctolib.com", - "contributions": [ - "code" - ] - }, - { - "login": "benbeauchamp7", - "name": "Ben Beauchamp", - "avatar_url": "https://avatars.githubusercontent.com/u/43358492?v=4", - "profile": "https://github.com/benbeauchamp7", - "contributions": [ - "code" - ] - }, - { - "login": "vfaergestad", - "name": "vfaergestad", - "avatar_url": "https://avatars.githubusercontent.com/u/49147564?v=4", - "profile": "https://github.com/vfaergestad", - "contributions": [ - "code" - ] - }, - { - "login": "wolffman122", - "name": "wolffman122", - "avatar_url": "https://avatars.githubusercontent.com/u/19178872?v=4", - "profile": "https://github.com/wolffman122", - "contributions": [ - "code" - ] - }, - { - "login": "Schrottfresser", - "name": "Schrottfresser", - "avatar_url": "https://avatars.githubusercontent.com/u/39998368?v=4", - "profile": "https://github.com/Schrottfresser", - "contributions": [ - "code" - ] - }, - { - "login": "DillionLowry", - "name": "Dillion", - "avatar_url": "https://avatars.githubusercontent.com/u/91228469?v=4", - "profile": "https://github.com/DillionLowry", - "contributions": [ - "code" - ] - }, - { - "login": "JamsRepos", - "name": "Jam", - "avatar_url": "https://avatars.githubusercontent.com/u/1347620?v=4", - "profile": "https://github.com/JamsRepos", - "contributions": [ - "code" - ] - }, - { - "login": "joelowrance", - "name": "Joe Lowrance", - "avatar_url": "https://avatars.githubusercontent.com/u/63176?v=4", - "profile": "http://www.joelowrance.com", - "contributions": [ - "code" - ] - }, - { - "login": "0xSysR3ll", - "name": "0xsysr3ll", - "avatar_url": "https://avatars.githubusercontent.com/u/31414959?v=4", - "profile": "https://github.com/0xSysR3ll", - "contributions": [ - "code" - ] - }, - { - "login": "sudo-kraken", - "name": "Joe Harrison", - "avatar_url": "https://avatars.githubusercontent.com/u/53116754?v=4", - "profile": "https://sudo-kraken.github.io/docs/", - "contributions": [ - "infra" - ] - }, - { - "login": "ale183", - "name": "ale183", - "avatar_url": "https://avatars.githubusercontent.com/u/8809439?v=4", - "profile": "https://github.com/ale183", - "contributions": [ - "code" - ] - } - ] -} \ No newline at end of file diff --git a/.github/workflows/snap.yaml.disabled b/.github/workflows/snap.yaml.disabled deleted file mode 100644 index 5ed6ac71e..000000000 --- a/.github/workflows/snap.yaml.disabled +++ /dev/null @@ -1,94 +0,0 @@ -name: Publish Snap - -# turn off edge snap builds temporarily and make it manual - -# on: -# push: -# branches: -# - develop - -on: workflow_dispatch - -jobs: - jobs: - name: Job Check - runs-on: ubuntu-22.04 - if: "!contains(github.event.head_commit.message, '[skip ci]')" - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} - - build-snap: - name: Build Snap Package (${{ matrix.architecture }}) - needs: jobs - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - architecture: - - amd64 - - arm64 - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Prepare - id: prepare - run: | - git fetch --prune --unshallow --tags - if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then - echo "RELEASE=stable" >> $GITHUB_OUTPUT - else - echo "RELEASE=edge" >> $GITHUB_OUTPUT - fi - - name: Set Up QEMU - uses: docker/setup-qemu-action@v3 - - name: Configure Git - run: git config --add safe.directory /data/parts/seerr/src - - name: Build Snap Package - uses: diddlesnaps/snapcraft-multiarch-action@v1 - id: build - with: - architecture: ${{ matrix.architecture }} - - name: Upload Snap Package - uses: actions/upload-artifact@v4 - with: - name: seerr-snap-package-${{ matrix.architecture }} - path: ${{ steps.build.outputs.snap }} - - name: Review Snap Package - uses: diddlesnaps/snapcraft-review-tools-action@v1 - with: - snap: ${{ steps.build.outputs.snap }} - - name: Publish Snap Package - uses: snapcore/action-publish@v1 - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_LOGIN }} - with: - snap: ${{ steps.build.outputs.snap }} - release: ${{ steps.prepare.outputs.RELEASE }} - - discord: - name: Send Discord Notification - needs: build-snap - if: always() && !contains(github.event.head_commit.message, '[skip ci]') - runs-on: ubuntu-22.04 - steps: - - name: Get Build Job Status - uses: technote-space/workflow-conclusion-action@v3 - - name: Combine Job Status - id: status - run: | - failures=(neutral, skipped, timed_out, action_required) - if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then - echo "status=failure" >> $GITHUB_OUTPUT - else - echo "status=$WORKFLOW_CONCLUSION" >> $GITHUB_OUTPUT - fi - - name: Post Status to Discord - uses: sarisia/actions-status-discord@v1 - with: - webhook: ${{ secrets.DISCORD_WEBHOOK }} - status: ${{ steps.status.outputs.status }} - title: ${{ github.workflow }} - nofail: true diff --git a/charts/jellyseerr-chart/Chart.yaml b/charts/jellyseerr-chart/Chart.yaml deleted file mode 100644 index 317f87956..000000000 --- a/charts/jellyseerr-chart/Chart.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v2 -kubeVersion: '>=1.23.0-0' -name: seerr-chart -description: Seerr helm chart for Kubernetes -type: application -version: 2.7.0 -appVersion: '2.7.3' -maintainers: - - name: Seerr - url: https://github.com/fallenbagel/jellyseerr -sources: - - https://github.com/fallenbagel/jellyseerr/tree/main/charts/jellyseerr -home: https://github.com/fallenbagel/jellyseerr diff --git a/cypress/config/settings.cypress.json b/cypress/config/settings.cypress.json index b9a45a532..973f4c591 100644 --- a/cypress/config/settings.cypress.json +++ b/cypress/config/settings.cypress.json @@ -201,4 +201,4 @@ "forceMaxTtl": -1 } } -} \ No newline at end of file +} diff --git a/docs/extending-seerr/_category_.json b/docs/extending-seerr/_category_.json index 2a9469c22..49c0e5d41 100644 --- a/docs/extending-seerr/_category_.json +++ b/docs/extending-seerr/_category_.json @@ -6,4 +6,4 @@ "title": "Extending Seerr", "description": "Extend Seerr to your liking" } -} \ No newline at end of file +} diff --git a/docs/using-seerr/_category_.json b/docs/using-seerr/_category_.json index d9a4d6995..a7d5f8b65 100644 --- a/docs/using-seerr/_category_.json +++ b/docs/using-seerr/_category_.json @@ -6,4 +6,4 @@ "title": "Using Seerr", "description": "Learn how to use Seerr" } -} \ No newline at end of file +} diff --git a/docs/using-seerr/plex/_category_.json b/docs/using-seerr/plex/_category_.json index 648381e5d..241f774bd 100644 --- a/docs/using-seerr/plex/_category_.json +++ b/docs/using-seerr/plex/_category_.json @@ -6,4 +6,4 @@ "title": "Plex Integration", "description": "Learn about Seerr's Plex integration features" } -} \ No newline at end of file +} diff --git a/docs/using-seerr/settings/_category_.json b/docs/using-seerr/settings/_category_.json index d13cf5e06..3ea1aec48 100644 --- a/docs/using-seerr/settings/_category_.json +++ b/docs/using-seerr/settings/_category_.json @@ -6,4 +6,4 @@ "title": "Settings", "description": "Configure Seerr to your liking" } -} \ No newline at end of file +} diff --git a/docs/using-seerr/users/_category_.json b/docs/using-seerr/users/_category_.json index 22f1dcc81..2f6730b83 100644 --- a/docs/using-seerr/users/_category_.json +++ b/docs/using-seerr/users/_category_.json @@ -6,4 +6,4 @@ "title": "Users", "description": "Configure your Seerr users" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 6cfaf63a3..19d88b1fa 100644 --- a/package.json +++ b/package.json @@ -271,4 +271,4 @@ "bcrypt" ] } -} \ No newline at end of file +} diff --git a/public/site.webmanifest b/public/site.webmanifest index cda6a97f6..86ca0aa57 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -77,4 +77,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml deleted file mode 100644 index d3742af2b..000000000 --- a/snap/snapcraft.yaml +++ /dev/null @@ -1,121 +0,0 @@ -name: seerr -adopt-info: seerr -license: MIT -summary: Request management and media discovery tool for media servers -description: > - Seerr is a free and open source software application for managing requests for your media library. - It is a a fork of Overseerr built to bring support for & focusing mainly on Jellyfin & Emby media servers! - It integrates with your existing services such as Sonarr, Radarr, and Jellyfin/Emby/Plex. -base: core20 -confinement: strict - -architectures: - - build-on: amd64 - - build-on: arm64 - # - build-on: armhf - -parts: - seerr: - plugin: nil - build-packages: - - git - - ca-certificates - - curl - - gnupg - - on arm64: - - build-essential - - automake - - python-gi - - python-gi-dev - # - on armhf: - # - libatomic1 - # - build-essential - # - automake - # - python-gi - # - python-gi-dev - source: . - override-pull: | - snapcraftctl pull - # Get information to determine snap grade and version - git config --global --add safe.directory /data/parts/seerr/src - #setup yarn.rc - echo "--install.frozen-lockfile\n--install.network-timeout 1000000" > .yarnrc - BRANCH=$(git rev-parse --abbrev-ref HEAD) - COMMIT=$(git rev-parse HEAD) - COMMIT_SHORT=$(git rev-parse --short HEAD) - VERSION='v'$(cat package.json | grep 'version' | head -1 | sed 's/.*"\(.*\)"\,/\1/') - if [ "$VERSION" = "v0.1.0" ]; then - SNAP_VERSION=$COMMIT_SHORT - GRADE=stable - else - SNAP_VERSION=$VERSION - GRADE=stable - fi - # Write COMMIT_TAG as it is needed durring the build process - echo $COMMIT > commit.txt - # Print debug info for build version - echo "{\"commitShort\": \"$COMMIT_SHORT\", \ - \"version\": \"$VERSION\", \ - \"snapVersion\": \"$SNAP_VERSION\", \ - \"snapGrade\": \"$GRADE\", \ - \"branch\": \"$BRANCH\", \ - \"commit\": \"$COMMIT\"}" - echo "{\"commitTag\": \"$COMMIT\"}" > committag.json - # Set snap version and grade - snapcraftctl set-version "$SNAP_VERSION" - snapcraftctl set-grade "$GRADE" - build-environment: - - PATH: '$SNAPCRAFT_PART_BUILD/node_modules/.bin:$PATH' - - CYPRESS_INSTALL_BINARY: '0' - override-build: | - set -e - # Install necessary packages - mkdir -p /etc/apt/keyrings - # Add Node.js repository key - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg - - # Set Node.js version - NODE_MAJOR=20 - # Add Node.js repository to sources list - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list - - # Update package sources and install Node.js - apt-get update - apt-get install nodejs -y - - # Install Yarn - npm install -g yarn - # Set COMMIT_TAG before the build begins - export COMMIT_TAG=$(cat $SNAPCRAFT_PART_BUILD/commit.txt) - snapcraftctl build - yarn install --frozen-lockfile --network-timeout 1000000 - yarn build - # Copy files needed for staging - cp $SNAPCRAFT_PART_BUILD/committag.json $SNAPCRAFT_PART_INSTALL/ - cp -R $SNAPCRAFT_PART_BUILD/.next $SNAPCRAFT_PART_INSTALL/ - cp -R $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/ - cp -R $SNAPCRAFT_PART_BUILD/node_modules $SNAPCRAFT_PART_INSTALL/ - # Remove .github and gitbook as it will fail snap lint - rm -rf $SNAPCRAFT_PART_INSTALL/.github - # stage-packages: - # - on armhf: - # - libatomic1 - stage: [.next, ./*] - prime: [.next, ./*] - -apps: - daemon: - command: /bin/sh -c "cd $SNAP && node dist/index.js" - daemon: simple - restart-condition: on-failure - restart-delay: 5s - plugs: - - home - - network - - network-bind - environment: - PATH: '$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH' - OVERSEERR_SNAP: 'True' - CONFIG_DIRECTORY: $SNAP_USER_COMMON - LOG_LEVEL: 'debug' - NODE_ENV: 'production'