-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
+57
−62
Closed
Flatpak #198
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
679af51
Update CMakeLists.txt
umireon c7c8738
Update CMakeLists.txt
umireon 877a817
foreach
umireon 3afc6fa
Update CMakeLists.txt
umireon 2cd0088
Revert "Update CMakeLists.txt"
umireon a620346
Revert "foreach"
umireon d5716f5
Revert "Update CMakeLists.txt"
umireon 7f6e268
Update CMakeLists.txt
umireon 9208e15
Update CMakeLists.txt
umireon ee3d06a
Update CMakeLists.txt
umireon 17615d6
Fix yaml
umireon 5e54f38
Update
umireon 744c383
a
umireon 8067800
a
umireon 58304ef
Add stable
umireon f4158d1
Update com.obsproject.Studio.Plugin.Backgroundremoval.metainfo.xml
umireon 2f0cac5
Merge branch 'main' into umireon.flatpak-build
umireon 1248376
Merge branch 'main' into umireon.flatpak-build
umireon 8bbd2c2
Update com.obsproject.Studio.Plugin.Backgroundremoval.yaml
umireon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...dio.Plugin.backgroundremoval.metainfo.xml → ...dio.Plugin.Backgroundremoval.metainfo.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
</component> | ||
</component> |
55 changes: 55 additions & 0 deletions
55
ci/flatpak/com.obsproject.Studio.Plugin.Backgroundremoval.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
60
ci/flatpak/com.obsproject.Studio.Plugin.backgroundremoval.yaml
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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! 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that true