Fix channel banners and temporarily remove RPM for testing

This commit is contained in:
Preston 2020-07-16 23:14:26 -04:00
parent 69101aba2f
commit a460fd08ce
3 changed files with 36 additions and 30 deletions

View File

@ -49,34 +49,34 @@ jobs:
with: with:
name: freetube-vue_0.8.0_static_web name: freetube-vue_0.8.0_static_web
path: dist/web path: dist/web
# - name: Build on ARMv7 - name: Build on ARMv7
# uses: uraimo/run-on-arch-action@v1.0.9 uses: uraimo/run-on-arch-action@v1.0.9
# if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
# with: with:
# architecture: aarch64 architecture: aarch64
# distribution: ubuntu20.04 distribution: ubuntu20.04
# run: | run: |
# export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
# export TZ=Europe/Kiev export TZ=Europe/Kiev
# apt update apt update
# apt install -y curl apt install -y curl
# echo 'installing node 12x' echo 'installing node 12x'
# curl -sL https://deb.nodesource.com/setup_12.x | bash curl -sL https://deb.nodesource.com/setup_12.x | bash
# echo 'finished installing node' echo 'finished installing node'
# apt update apt update
# apt install -y nodejs apt install -y nodejs
# apt install -y build-essential apt install -y build-essential
# apt install -y libopenjp2-7 apt install -y libopenjp2-7
# node --version node --version
# npm install npm install
# npm run lint npm run lint
# npm run build --if-present npm run build --if-present
# - name: Upload Linux ARM64 .deb Artifact - name: Upload Linux ARM64 .deb Artifact
# uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
# if: startsWith(matrix.os, 'ubuntu-latest') if: startsWith(matrix.os, 'ubuntu-latest')
# with: with:
# name: freetube-vue_0.8.0_arm64.deb name: freetube-vue_0.8.0_arm64.deb
# path: build/freetube-vue_0.8.0_arm64.deb path: build/freetube-vue_0.8.0_arm64.deb
- name: Upload Windows .exe Artifact - name: Upload Windows .exe Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows')

View File

@ -47,7 +47,7 @@ const config = {
linux: { linux: {
category: 'Network', category: 'Network',
icon: '_icons/icon.png', icon: '_icons/icon.png',
target: ['deb', 'rpm', 'zip', 'AppImage'], target: ['deb', 'zip', 'AppImage'], // re-add RPM after testiing
}, },
mac: { mac: {
category: 'public.app-category.utilities', category: 'public.app-category.utilities',

View File

@ -178,7 +178,13 @@ export default Vue.extend({
this.relatedChannels = response.relatedChannels this.relatedChannels = response.relatedChannels
if (response.authorBanners !== null) { if (response.authorBanners !== null) {
this.bannerUrl = `https://${response.authorBanners[response.authorBanners.length - 1].url}` const bannerUrl = response.authorBanners[response.authorBanners.length - 1].url
if (!bannerUrl.includes('https')) {
this.bannerUrl = `https://${bannerUrl}`
} else {
this.bannerUrl = bannerUrl
}
} else { } else {
this.bannerUrl = null this.bannerUrl = null
} }