diff --git a/.github/workflows/prod-flathub.yml b/.github/workflows/prod-flathub.yml new file mode 100644 index 00000000..36345e60 --- /dev/null +++ b/.github/workflows/prod-flathub.yml @@ -0,0 +1,67 @@ +name: Update Flathub PR + +on: + workflow_run: + workflows: ["Build desktop"] + types: + - completed + +jobs: + flathub-create-pr: + runs-on: ubuntu-latest + steps: + - name: Checkout the flathub/us.materialio.Materialious repository + uses: actions/checkout@v4 + with: + repository: flathub/us.materialio.Materialious + token: ${{ secrets.FLATHUB_TOKEN }} + + - name: Retrieve latest release version and assets + id: get_release + run: | + RELEASE_DATA=$(curl --silent "https://api.github.com/repos/Materialious/Materialious/releases/latest") + VERSION=$(echo $RELEASE_DATA | jq -r .tag_name) + X86_URL=$(echo $RELEASE_DATA | jq -r '.assets[] | select(.name | contains("linux-x64.zip")) | .browser_download_url') + AARCH64_URL=$(echo $RELEASE_DATA | jq -r '.assets[] | select(.name | contains("linux-arm64.zip")) | .browser_download_url') + echo "::set-output name=version::$VERSION" + echo "::set-output name=x86_url::$X86_URL" + echo "::set-output name=aarch64_url::$AARCH64_URL" + + - name: Generate SHA256 checksum for x86_64 release + id: sha256_x86 + run: | + CHECKSUM=$(curl -L ${{ steps.get_release.outputs.x86_url }} | sha256sum | awk '{ print $1 }') + echo "::set-output name=x86_64_sha256::$CHECKSUM" + + - name: Generate SHA256 checksum for aarch64 release + id: sha256_arm + run: | + CHECKSUM=$(curl -L ${{ steps.get_release.outputs.aarch64_url }} | sha256sum | awk '{ print $1 }') + echo "::set-output name=aarch64_sha256::$CHECKSUM" + + - name: Update manifest file with new version and checksums + run: | + MANIFEST_FILE="us.materialio.Materialious.yml" + yq eval -i ".version = \"${{ steps.get_release.outputs.version }}\"" $MANIFEST_FILE + yq eval -i ".modules[0].sources[0].url = \"${{ steps.get_release.outputs.x86_url }}\"" $MANIFEST_FILE + yq eval -i ".modules[0].sources[0].sha256 = \"${{ steps.sha256_x86.outputs.x86_64_sha256 }}\"" $MANIFEST_FILE + yq eval -i ".modules[0].sources[1].url = \"${{ steps.get_release.outputs.aarch64_url }}\"" $MANIFEST_FILE + yq eval -i ".modules[0].sources[1].sha256 = \"${{ steps.sha256_arm.outputs.aarch64_sha256 }}\"" $MANIFEST_FILE + + - name: Create Release Branch + run: | + git checkout -b release-v${{ steps.get_release.outputs.version }} + git push --set-upstream origin release-v${{ steps.get_release.outputs.version }} + + - name: Commit changes + run: | + git add us.materialio.Materialious.yml + git commit -m "Update manifest for v${{ steps.get_release.outputs.version }} release" + git push + + - name: Create Pull Request + run: | + echo ${{ secrets.FLATHUB_TOKEN }} >> auth.txt + gh auth login --with-token < auth.txt + rm auth.txt + gh pr create --title "Release v${{ steps.get_release.outputs.version }}" --body "This is an automated PR for the v${{ steps.get_release.outputs.version }} release. This PR will be updated and merged once testing is complete." --repo flathub/us.materialio.Materialious diff --git a/.github/workflows/prod-web.yml b/.github/workflows/prod-web.yml index 63a313ed..831959ab 100644 --- a/.github/workflows/prod-web.yml +++ b/.github/workflows/prod-web.yml @@ -23,10 +23,17 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract version from package.json + id: extract_version + run: | + VERSION=$(jq -r .version ./materialious/package.json) + echo "version=$VERSION" >> "$GITHUB_OUTPUT" - name: Build and push uses: docker/build-push-action@v5 with: context: ./materialious platforms: linux/amd64,linux/arm64,linux/arm/v7 push: true - tags: wardpearce/materialious:latest + tags: | + wardpearce/materialious:latest + wardpearce/materialious:${{ steps.extract_version.outputs.version }} \ No newline at end of file diff --git a/materialious/android/app/build.gradle b/materialious/android/app/build.gradle index 0c107a5c..536d07c1 100644 --- a/materialious/android/app/build.gradle +++ b/materialious/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "us.materialio.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 91 - versionName "1.7.9" + versionCode 93 + versionName "1.7.11" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/materialious/electron/materialious.metainfo.xml b/materialious/electron/materialious.metainfo.xml index 543e298d..3273fd90 100644 --- a/materialious/electron/materialious.metainfo.xml +++ b/materialious/electron/materialious.metainfo.xml @@ -53,7 +53,11 @@ intense - + + + https://github.com/Materialious/Materialious/releases/tag/1.7.11 + + https://github.com/Materialious/Materialious/releases/tag/1.6.25 diff --git a/materialious/electron/package.json b/materialious/electron/package.json index da815481..b298db55 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -1,6 +1,6 @@ { "name": "Materialious", - "version": "1.7.9", + "version": "1.7.11", "description": "Modern material design for Invidious.", "author": { "name": "Ward Pearce", diff --git a/materialious/package-lock.json b/materialious/package-lock.json index 82011ffc..a1745f51 100644 --- a/materialious/package-lock.json +++ b/materialious/package-lock.json @@ -1,12 +1,12 @@ { "name": "materialious", - "version": "1.7.9", + "version": "1.7.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "materialious", - "version": "1.7.9", + "version": "1.7.10", "dependencies": { "@capacitor-community/electron": "^5.0.1", "@capacitor/android": "^6.1.2", diff --git a/materialious/package.json b/materialious/package.json index 6099212b..7c0b6768 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -1,6 +1,6 @@ { "name": "materialious", - "version": "1.7.9", + "version": "1.7.11", "private": true, "scripts": { "dev": "vite dev", @@ -74,4 +74,4 @@ "vidstack": "^1.12.12", "youtubei.js": "^12.2.0" } -} +} \ No newline at end of file diff --git a/materialious/src/lib/components/Settings/Interface.svelte b/materialious/src/lib/components/Settings/Interface.svelte index 3d6ea338..ea8d0d92 100644 --- a/materialious/src/lib/components/Settings/Interface.svelte +++ b/materialious/src/lib/components/Settings/Interface.svelte @@ -24,7 +24,6 @@ interfaceDisplayThumbnailAvatars, interfaceForceCase, interfaceLowBandwidthMode, - interfacePreviewVideoOnHoverStore, interfaceRegionStore, interfaceSearchHistoryEnabled, interfaceSearchSuggestionsStore, @@ -183,22 +182,6 @@ -
- -
-