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

Flatpak #198

Closed
wants to merge 19 commits into from
Closed
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>com.obsproject.Studio.Plugin.backgroundremoval</id>
<id>com.obsproject.Studio.Plugin.Backgroundremoval</id>
<extends>com.obsproject.Studio</extends>
<name>obs-backgroundremoval Plugin</name>
<summary> An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording.</summary>
<url type="homepage">https://github.com/royshil/obs-backgroundremoval</url>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel very uncomfortable changing the license to GPL 2.
MIT is a far more permissive license.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that but we are forced to use GPL-2.0. Of course, I'm against GPL.
I revert this change when #199 is rejected.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can go to GPLv2
it's unfortunate. very restrictive...
but all of OBS is GPLv2 and even the obs-plugintemplate which this plugin came from! 🤣

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that true

</component>
</component>
55 changes: 55 additions & 0 deletions ci/flatpak/com.obsproject.Studio.Plugin.Backgroundremoval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
id: com.obsproject.Studio.Plugin.Backgroundremoval
branch: stable
runtime: com.obsproject.Studio
runtime-version: stable
sdk: org.kde.Sdk//6.4
build-extension: true
separate-locales: false
appstream-compose: false
build-options:
prefix: /app/plugins/Backgroundremoval
modules:
# onnxruntime has a bash+python+cmake build script - just download/use pre-compiled library
# https://onnxruntime.ai/docs/build/inferencing.html
- name: onnxruntime
buildsystem: simple
sources:
- type: archive
url: https://github.com/microsoft/onnxruntime/releases/download/v1.14.1/onnxruntime-linux-x64-1.14.1.tgz
sha256: 010585f534d822bf02d54c7cfc53b57aa3eb0cf34f8fb7503ee519ed18e25d29
build-commands:
- mkdir -p ${FLATPAK_DEST}/include ${FLATPAK_DEST}/lib
- mv include/* ${FLATPAK_DEST}/include
- mv lib/* ${FLATPAK_DEST}/lib
# https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html
- name: opencv
buildsystem: cmake-ninja
builddir: true
config-opts:
- "-DBUILD_LIST=core,imgproc"
sources:
- type: archive
url: https://github.com/opencv/opencv/archive/refs/tags/4.7.0.tar.gz
sha256: 8df0079cdbe179748a18d44731af62a245a45ebf5085223dc03133954c662973
- name: obs-backgroundremoval
buildsystem: cmake-ninja
config-opts:
- -DUSE_SYSTEM_OPENCV=ON
- -DUSE_SYSTEM_ONNXRUNTIME=ON
- -DLINUX_PORTABLE=OFF
post-install:
- install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo ${FLATPAK_ID}.metainfo.xml
- appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak
${FLATPAK_ID}
sources:
- type: archive
url: https://github.com/royshil/obs-backgroundremoval/archive/refs/tags/v0.5.15.tar.gz
sha256: bae4563374d97512ee7495b8e176204c3961af7f2e0001ce7a0d15f710016091
- type: file
path: com.obsproject.Studio.Plugin.Backgroundremoval.metainfo.xml
cleanup:
- /include
- /share/opencv4
- /lib/cmake
- /bin

60 changes: 0 additions & 60 deletions ci/flatpak/com.obsproject.Studio.Plugin.backgroundremoval.yaml

This file was deleted.