diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b13674628..dee0401ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: run: npm run lint # Create recursivelly the destiantion dir with # "--parrents where no error if existing, make parent directories as needed." - - run: mkdir -p ./build/${{ github.ref_name }} + - run: mkdir -p ./build/${{ github.head_ref || github.ref_name }} - name: Deploy to GitHub Pages if: ${{ github.actor != 'dependabot[bot]' }} uses: peaceiris/actions-gh-pages@v4 @@ -40,5 +40,5 @@ jobs: publish_dir: ./build # in stremio, we use `feat/features-name` or `fix/this-bug` # so we need a recursive creation of the destination dir - destination_dir: ${{ github.ref_name }} + destination_dir: ${{ github.head_ref || github.ref_name }} allow_empty_commit: true diff --git a/package-lock.json b/package-lock.json index 023732cd1..2bee50a28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@babel/runtime": "7.16.0", "@sentry/browser": "6.13.3", "@stremio/stremio-colors": "5.0.1", - "@stremio/stremio-core-web": "https://stremio.github.io/stremio-core/stremio-core-web/stremio-core-web-v0.47.8/dev/stremio-stremio-core-web-0.47.8.tgz", + "@stremio/stremio-core-web": "0.47.8", "@stremio/stremio-icons": "5.2.0", "@stremio/stremio-video": "0.0.38", "a-color-picker": "1.2.1", @@ -2972,9 +2972,8 @@ }, "node_modules/@stremio/stremio-core-web": { "version": "0.47.8", - "resolved": "https://stremio.github.io/stremio-core/stremio-core-web/stremio-core-web-v0.47.8/dev/stremio-stremio-core-web-0.47.8.tgz", - "integrity": "sha512-qdNlsRdUXlNm999QE/smOVFXe/nJ2x28NO5OTriNqGMO1DGcp7HgCJ1V11RG4Tv/DkEDC8w4l0kkoDXspBzL3w==", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@stremio/stremio-core-web/-/stremio-core-web-0.47.8.tgz", + "integrity": "sha512-X5yKSCm5DXR7U6oIO+2kaI1q3TnaWP6df/HFa1RBi/uw+8IYk+FB8GWpryxXyisJTFiUfQgcJDIlHROauaBQkg==", "dependencies": { "@babel/runtime": "7.24.1" } diff --git a/package.json b/package.json index f8c4b5d77..5de7c6bee 100755 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@babel/runtime": "7.16.0", "@sentry/browser": "6.13.3", "@stremio/stremio-colors": "5.0.1", - "@stremio/stremio-core-web": "https://stremio.github.io/stremio-core/stremio-core-web/stremio-core-web-v0.47.8/dev/stremio-stremio-core-web-0.47.8.tgz", + "@stremio/stremio-core-web": "0.47.8", "@stremio/stremio-icons": "5.2.0", "@stremio/stremio-video": "0.0.38", "a-color-picker": "1.2.1", diff --git a/src/common/AddonDetailsModal/AddonDetailsModal.js b/src/common/AddonDetailsModal/AddonDetailsModal.js index 085925aac..ffe2671d0 100644 --- a/src/common/AddonDetailsModal/AddonDetailsModal.js +++ b/src/common/AddonDetailsModal/AddonDetailsModal.js @@ -105,7 +105,9 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => { } } : - addonDetails.remoteAddon !== null && addonDetails.remoteAddon.content.type === 'Ready' ? + addonDetails.remoteAddon !== null && + addonDetails.remoteAddon.content.type === 'Ready' && + !addonDetails.remoteAddon.content.content.manifest.behaviorHints.configurationRequired ? { className: styles['install-button'], @@ -131,7 +133,7 @@ const AddonDetailsModal = ({ transportUrl, onCloseRequest }) => { } : null; - return toggleButton !== null ? configureButton ? [cancelButton, configureButton, toggleButton] : [cancelButton, toggleButton] : [cancelButton]; + return configureButton && toggleButton ? [cancelButton, configureButton, toggleButton] : configureButton ? [cancelButton, configureButton] : toggleButton ? [cancelButton, toggleButton] : [cancelButton]; }, [addonDetails, onCloseRequest]); const modalBackground = React.useMemo(() => { return addonDetails.remoteAddon?.content.type === 'Ready' ? addonDetails.remoteAddon.content.content.manifest.background : null;