Skip to content
Open
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
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


resolve-flatpak
===============

Expand All @@ -13,26 +12,10 @@ Usage
-----

1. Clone this repo with: `git clone -b unified-patches https://github.com/RobotRoss/resolve-flatpak.git --recursive`
By default, com.blackmagic.Resolve.Free.yaml is configured to package the latest version of Resolve (18.5 Beta 3 at the time of writing).

2. Build your package, and export to a distributable single file installer:

#### Free
```
flatpak-builder --force-clean --repo=repo build-dir com.blackmagicdesign.Resolve.Free.yaml
flatpak build-bundle repo ResolveFree.flatpak com.blackmagicdesign.Resolve.Free
```
#### Studio
```
flatpak-builder --force-clean --repo=repo build-dir com.blackmagicdesign.Resolve.Studio.yaml
flatpak build-bundle repo ResolveStudio.flatpak com.blackmagicdesign.Resolve.Studio
```

4. Enjoy.
2. Learn download ID of the desired version:

IF YOU ENCOUNTER ISSUES: If you have appimagelauncherd (the AppImage Launcher daemon) installed and enabled, you NEED to temporarely disable it (either through systemctl or through the AppImage Launcher GUI) as it conflicts with flatpak-builder during the .run file repackaging process.

## Finding explicit Download IDs (for download_resolve.sh)
## Finding explicit Download IDs (for resolve_download.py)
#### Studio:

```
Expand All @@ -55,5 +38,26 @@ curl -o- https://www.blackmagicdesign.com/api/support/nz/downloads.json |
| @tsv'
```

3. Overwrite the strings in python/resolve_download.py file. The file is currently configured to download:
DaVinci Resolve 18.6.6

4. 3. Build your package, and export to a distributable single file installer:

#### Free
```
flatpak-builder --force-clean --repo=repo build-dir com.blackmagicdesign.DaVinciResolve.Free.yaml
flatpak build-bundle repo DaVinciResolve.Free.flatpak com.blackmagicdesign.DaVinciResolve.Free
```
#### Studio
```
flatpak-builder --force-clean --repo=repo build-dir com.blackmagicdesign.DaVinciResolve.Studio.yaml
flatpak build-bundle repo DaVinciResolve.Studio.flatpak com.blackmagicdesign.DaVinciResolve.Studio
```

5. Enjoy.

IF YOU ENCOUNTER ISSUES: If you have appimagelauncherd (the AppImage Launcher daemon) installed and enabled, you NEED to temporarely disable it (either through systemctl or through the AppImage Launcher GUI) as it conflicts with flatpak-builder during the .run file repackaging process.


## Licensing
The icon in logo.png is licensed under the Creative [Commons Attribution-Share Alike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/deed.en) and fetched from [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:DaVinci_Resolve_Studio.png). It was only cropped afterwards.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Name=Davinci Resolve
Icon=com.blackmagicdesign.Resolve.Free
Name=DaVinci Resolve
Icon=com.blackmagicdesign.DaVinciResolve.Free
Exec=/app/bin/resolve.sh
Categories=AudioVideo;
PrefersNonDefaultGPU=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Flatpak Configuration for building DaVinci Resolve
#
####
app-id: com.blackmagicdesign.Resolve.Free
app-id: com.blackmagicdesign.DaVinciResolve.Free
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '23.08'
sdk: org.freedesktop.Sdk
Expand All @@ -17,8 +17,8 @@ finish-args:
- --filesystem=xdg-cache
- --filesystem=xdg-data
- --filesystem=xdg-videos
- --filesystem=xdg-desktop
- --filesystem=~/.local/share/DaVinciResolve
- --filesystem=~/Desktop
- --env=LD_PRELOAD=/lib/x86_64-linux-gnu/libglib-2.0.so.0 /lib/x86_64-linux-gnu/libgio-2.0.so.0 /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 /lib/x86_64-linux-gnu/libgobject-2.0.so.0
- --env=RUSTICL_ENABLE=radeonsi,iris,nouveau
- --env=OCL_ICD_VENDORS=rusticl.icd
Expand Down Expand Up @@ -67,7 +67,7 @@ modules:
- --share=network
build-commands:
- install -Dm644 logo.png /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.png
- install -Dm644 com.blackmagic.Resolve.Free.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 com.blackmagicdesign.DaVinciResolve.Free.desktop /app/share/applications/${FLATPAK_ID}.desktop
- |
./run_complete_installation.sh
sources:
Expand All @@ -92,4 +92,4 @@ modules:
- type: file
path: logo.png
- type: file
path: com.blackmagic.Resolve.Free.desktop
path: com.blackmagicdesign.DaVinciResolve.Free.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Name=Davinci Resolve Studio
Icon=com.blackmagicdesign.Resolve.Studio
Name=DaVinci Resolve Studio
Icon=com.blackmagicdesign.DaVinciResolve.Studio
Exec=/app/bin/resolve.sh
Categories=AudioVideo;
PrefersNonDefaultGPU=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Flatpak Configuration for building DaVinci Resolve
#
####
app-id: com.blackmagicdesign.Resolve.Studio
app-id: com.blackmagicdesign.DaVinciResolve.Studio
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '23.08'
sdk: org.freedesktop.Sdk
Expand All @@ -17,8 +17,8 @@ finish-args:
- --filesystem=xdg-cache
- --filesystem=xdg-data
- --filesystem=xdg-videos
- --filesystem=xdg-desktop
- --filesystem=~/.local/share/DaVinciResolve
- --filesystem=~/Desktop
- --env=LD_PRELOAD=/lib/x86_64-linux-gnu/libglib-2.0.so.0 /lib/x86_64-linux-gnu/libgio-2.0.so.0 /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 /lib/x86_64-linux-gnu/libgobject-2.0.so.0
- --env=RUSTICL_ENABLE=radeonsi,iris,nouveau
- --env=OCL_ICD_VENDORS=rusticl.icd
Expand Down Expand Up @@ -67,7 +67,7 @@ modules:
- --share=network
build-commands:
- install -Dm644 logo.png /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.png
- install -Dm644 com.blackmagicdesign.Resolve.Studio.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 com.blackmagicdesign.DaVinciResolve.Studio.desktop /app/share/applications/${FLATPAK_ID}.desktop
- |
./run_complete_installation.sh --studio
sources:
Expand All @@ -92,4 +92,4 @@ modules:
- type: file
path: logo.png
- type: file
path: com.blackmagicdesign.Resolve.Studio.desktop
path: com.blackmagicdesign.DaVinciResolve.Studio.desktop
2 changes: 1 addition & 1 deletion python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
download_using_id(download_id)
print(f"Building meta info...")
build_metainfo(
app_id='com.blackmagicdesign.Resolve.Studio' if is_studio else 'com.blackmagicdesign.Resolve.Free',
app_id='com.blackmagicdesign.DaVinciResolve.Studio' if is_studio else 'com.blackmagicdesign.DaVinciResolve.Free',
app_description="DaVinci Resolve Studio" if is_studio else 'DaVinci Resolve',
app_tag=app_tag,
)
4 changes: 2 additions & 2 deletions python/resolve_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}


def get_latest_version_information(app_tag: str, refer_id: str = '77ef91f67a9e411bbbe299e595b4cfcc', stable=True):
def get_latest_version_information(app_tag: str, refer_id: str = 'dfd43085ef224766b06b579ce8a6d097', stable=True):
response: requests.Response = requests.get(
f"https://www.blackmagicdesign.com/api/support/latest-stable-version/{app_tag}/linux"
if stable else
Expand All @@ -49,7 +49,7 @@ def get_latest_version_information(app_tag: str, refer_id: str = '77ef91f67a9e41
), parsed_response["linux"]["releaseId"], parsed_response["linux"]["downloadId"])


def download_using_id(download_id: str, refer_id: str = "77ef91f67a9e411bbbe299e595b4cfcc"):
def download_using_id(download_id: str, refer_id: str = "dfd43085ef224766b06b579ce8a6d097"):
download_url_data = {
"firstname": "Flatpak",
"lastname": "Builder",
Expand Down
2 changes: 1 addition & 1 deletion shared-modules
Submodule shared-modules updated 54 files
+4 −0 CODEOWNERS
+3 −2 README.md
+6 −0 SDL/SDL_image-1.2.12.json
+5 −0 SDL/SDL_mixer-1.2.12.json
+6 −0 SDL/SDL_ttf-2.0.11.json
+2 −2 SDL/sdl12-compat.json
+10 −10 SDL2/SDL2-no-libdecor.json
+11 −12 SDL2/SDL2-with-libdecor.json
+3 −3 glu/glu-9.json
+59 −22 gtk2/gtk2-common-themes.json
+2 −2 gudev/gudev.json
+9 −18 gzdoom/gzdoom.json
+2 −2 libdecor/libdecor.json
+0 −34 libmad/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff
+0 −12 libmad/libmad-0.15.1b-cflags-O2.patch
+0 −146 libmad/libmad-0.15.1b-cflags.patch
+0 −37 libmad/libmad-0.15.1b-multiarch.patch
+0 −13 libmad/libmad-0.15.1b-ppc.patch
+9 −42 libmad/libmad.json
+0 −12 libmad/libmad.thumb.diff
+0 −11 libmad/mad.pc
+2 −2 libsecret/libsecret.json
+14 −0 libsoup/libsoup-2.4.json
+2 −2 libusb/libusb.json
+1 −0 linux-audio/fftw3f.json
+5 −3 linux-audio/fluidsynth2-static.json
+2 −2 linux-audio/fluidsynth2.json
+0 −23 linux-audio/jack2.json
+3 −0 linux-audio/ladspa.json
+5 −0 linux-audio/lash.json
+3 −1 linux-audio/libinstpatch.json
+1 −1 linux-audio/liblo-static.json
+3 −0 linux-audio/liblo.json
+94 −0 linux-audio/lilv-static.json
+2 −0 linux-audio/lilv.json
+12 −5 linux-audio/lrdf.json
+0 −18 linux-audio/lv2-build.patch
+2 −6 linux-audio/lv2.json
+31 −0 linux-audio/patches/raptor-libxml.patch
+5 −5 lua5.4/lua-5.4.json
+30 −0 luajit/luajit.json
+27 −0 lzo/lzo.json
+3 −7 mac/mac.json
+34 −0 pygame/cython-fixes.patch
+25 −0 pygame/glib.patch
+47 −1 pygame/pygame-1.9.6.json
+0 −54 qt4/disable-sslv3.patch
+0 −11 qt4/fixgcc11.patch
+0 −31 qt4/fixgcc9.patch
+0 −118 qt4/qt4-4.8.7-minimal.json
+0 −514 qt4/qt4-aarch64.patch
+0 −409 qt4/qt4-openssl-1.1.patch
+6 −1 smpeg/smpeg-0.4.5.json
+22 −0 squashfs-tools/squashfs-tools.json