Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.10.2 #45

Merged
merged 6 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:

- name: Install dependencies
run: |
curl https://mateussouzaweb.github.io/compactor/install.sh | bash
curl https://mateussouzaweb.github.io/compactor/install.sh | bash -
npm install
npm install --global rollup

- name: Build package
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:

- name: Install dependencies
run: |
curl https://mateussouzaweb.github.io/compactor/install.sh | bash
curl https://mateussouzaweb.github.io/compactor/install.sh | bash -
npm install
npm install --global rollup

- name: Build package
run: |
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ LABEL org.opencontainers.image.source https://github.com/mateussouzaweb/crunchyr
LABEL maintainer="Mateus Souza <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
# Install system packages
RUN apt update && apt install -y make sed curl
RUN mkdir -p /usr/local/bin
RUN curl https://mateussouzaweb.github.io/compactor/install.sh | bash
RUN npm install -g rollup
RUN npm install -g npm

# Install compactor
RUN mkdir -p /usr/local/bin && \
curl https://mateussouzaweb.github.io/compactor/install.sh | bash -

# Create app directory
WORKDIR /app
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export PROOT=$(shell pwd)
export BINARIES=${PROOT}/node_modules/.bin

export VERSION=1.10.1
export VERSION=1.10.2
export ID=com.crunchyroll.webos
export HOMEPAGE="https://github.com/mateussouzaweb/crunchyroll-webos"
export THUMBNAIL="https://raw.githubusercontent.com/mateussouzaweb/crunchyroll-webos/master/src/images/80px.png"
Expand All @@ -16,9 +16,7 @@ build:
--progressive false \
--hashed false \
&& rollup --config $(PROOT)/rollup.config.js \
&& sed -i 's/type="module"/defer="defer"/g' $(PROOT)/dist/index.html \
&& sed -i 's/href="\//href=".\//g' $(PROOT)/dist/index.html \
&& sed -i 's/src="\//src=".\//g' $(PROOT)/dist/index.html
&& sed -i 's/type="module"/defer="defer"/g' $(PROOT)/dist/index.html

develop:
compactor \
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ git clone [email protected]:mateussouzaweb/crunchyroll-webos.git
cd crunchyroll-webos/

# Build the container from Dockerfile
docker build -t crunchyroll-webos:latest .
docker build --no-cache -t crunchyroll-webos:latest .

# Run the container with user environment
docker run -it --rm \
Expand Down Expand Up @@ -92,11 +92,14 @@ Please note that the developer mode is enabled only for a few hours, so you will
You can also test this project in the browser, but it requires a few necessary steps. First, you need to start the browser without CORS. You also will need to access the project from the ``index.html`` file located on the ``dist/`` folder using the ``file://`` protocol, otherwise, Crunchyroll API response and video playback will be blocked by the security rules of the navigator:

```bash
# Step 1 - Start the browser without CORS
flatpak run com.google.Chrome --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

# Step 2 - Access the project from the dist/ folder
# Open in the browser the address in the format:
# file://{PATH_TO_DIST_FOLDER}/index.html
# Give flatpak permissions
flatpak override com.google.Chrome --filesystem=host

# Start the browser without CORS and access the project from the dist/ folder
flatpak run com.google.Chrome \
--user-data-dir="/tmp/chrome-dev-test" \
--disable-web-security \
--no-first-run \
file://$PWD/dist/index.html
```

3 changes: 2 additions & 1 deletion src/appinfo.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"id": "com.crunchyroll.webos",
"version": "1.10.1",
"version": "1.10.2",
"vendor": "Mateus Souza",
"type": "web",
"main": "index.html",
"title": "Crunchyroll",
"appDescription": "Unofficial Crunchyroll app for WebOS TV",
"icon": "images/80px.png",
"largeIcon": "images/130px.png",
"splashBackground": "images/background.png",
Expand Down