Skip to content

Commit 3fa986b

Browse files
authored
Merge pull request #31 from Stremio/refactor/gtk4
GTK 4
2 parents 1bbb735 + 76fb460 commit 3fa986b

79 files changed

Lines changed: 3441 additions & 6038 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[env]
2-
CEF_PATH = "vendor/cef"
2+
CEF_PATH = "vendor/cef"
3+
SERVER_PATH = "data/server.js"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Bug report
2+
description: Report a bug
3+
body:
4+
- type: dropdown
5+
id: install
6+
attributes:
7+
label: "Installation type"
8+
options:
9+
- Flatpak (.flatpak)
10+
- Source
11+
validations:
12+
required: true
13+
14+
- type: input
15+
id: platform
16+
attributes:
17+
label: "Platform"
18+
placeholder: Fedora 42
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: description
24+
attributes:
25+
label: "Describe the bug"
26+
validations:
27+
required: true

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,28 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
container:
14+
image: ubuntu:resolute
1315
steps:
1416
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
- name: Rust setup
17-
uses: dtolnay/rust-toolchain@stable
17+
uses: actions/checkout@v6
1818

1919
- name: Install dependencies
2020
run: |
21-
sudo apt-get -y update
22-
sudo apt-get -y install build-essential libssl-dev libnss3 libmpv-dev libgtk-3-dev libappindicator3-dev
21+
apt-get -y update
22+
apt-get -y install build-essential curl libssl-dev \
23+
libgtk-4-dev libadwaita-1-dev libwebkitgtk-6.0-dev libmpv-dev gettext nodejs
24+
25+
- name: Setup Rust
26+
uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: rustfmt, clippy
2329

2430
- name: Lint fmt
2531
run: cargo fmt --all -- --check
32+
2633
- name: Lint clippy
2734
run: cargo clippy --all --no-deps -- -D warnings
35+
2836
- name: Build
2937
run: cargo build

.github/workflows/release.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,39 @@ permissions:
1010
jobs:
1111
release:
1212
runs-on: ubuntu-latest
13+
container:
14+
image: ubuntu:resolute
15+
options: --privileged
1316
steps:
17+
- name: Install requirements
18+
run: |
19+
apt-get -y update
20+
apt-get -y install build-essential curl libssl-dev git \
21+
libgtk-4-dev libadwaita-1-dev libwebkitgtk-6.0-dev libmpv-dev gettext nodejs flatpak-builder
22+
1423
- name: Checkout repository
15-
uses: actions/checkout@v4
16-
- name: Update git submodules
17-
run: git submodule update --init --recursive
24+
uses: actions/checkout@v6
25+
with:
26+
submodules: recursive
1827

19-
- name: Setup Rust
20-
uses: dtolnay/rust-toolchain@stable
21-
22-
- name: Setup Python
28+
- name: Python setup
2329
uses: actions/setup-python@v5
2430
with:
2531
python-version: '3.13'
2632

27-
- name: Install requirements
33+
- name: Setup Flatpak
2834
run: |
29-
sudo apt-get -y update
30-
sudo apt-get -y install build-essential libssl-dev libnss3 libmpv-dev flatpak-builder libgtk-3-dev libappindicator3-dev
31-
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
32-
sudo flatpak install -y \
33-
org.freedesktop.Sdk//24.08 \
34-
org.freedesktop.Platform//24.08 \
35-
org.freedesktop.Sdk.Extension.rust-stable//24.08 \
36-
org.freedesktop.Platform.ffmpeg-full//24.08
35+
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
36+
flatpak install -y org.gnome.Sdk//50
37+
flatpak install -y org.gnome.Platform//50
38+
flatpak install -y org.freedesktop.Sdk.Extension.rust-stable//25.08
39+
flatpak install -y org.freedesktop.Platform.ffmpeg-full//24.08
40+
flatpak install -y org.freedesktop.Platform.VAAPI.Intel//25.08
3741
python3 -m pip install toml aiohttp
3842
43+
- name: Setup Rust
44+
uses: dtolnay/rust-toolchain@stable
45+
3946
- name: Build flatpak package
4047
run: ./flatpak/build.sh
4148
- name: Upload flatpak package to release

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/.flatpak-builder
21
/target
3-
/vendor
2+
/vendor
3+
.flatpak-builder

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "flatpak/flatpak-builder-tools"]
22
path = flatpak/flatpak-builder-tools
33
url = https://github.com/flatpak/flatpak-builder-tools
4-
[submodule "flatpak/shared-modules"]
5-
path = flatpak/shared-modules
6-
url = https://github.com/flathub/shared-modules

0 commit comments

Comments
 (0)