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

Add org.upbge.UPBGE #4713

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
MolassesLover marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.flatpak-builder
repo
builddir
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "shared-modules"]
path = shared-modules
url = https://github.com/flathub/shared-modules.git
3 changes: 3 additions & 0 deletions flathub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"only-arches": ["x86_64"]
}
38 changes: 38 additions & 0 deletions org.upbge.UPBGE.appdata.xml
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>org.upbge.UPBGE</id>
<launchable type="desktop-id">org.upbge.UPBGE.desktop</launchable>
<name>UPBGE</name>
<summary>UPBGE is a free and open source 3D Game Engine integrated in Blender</summary>
<metadata_license>CC0-1.0</metadata_license>
<content_rating type="oars-1.1" />
<project_license>GPL-3.0</project_license>
<description>
<p>
UPBGE is an open-source 3D game engine forked from old Blender Game Engine,
deployed with Blender itself. This unified workflow is its main strength as
you can make your game from start to end without leave UPBGE.
</p>

<p>
This way you will be able to increase your productivity incredibly.
You will be a one man army!!!
</p>
</description>
<url type="homepage">https://upbge.org</url>
<url type="bugtracker">https://github.com/UPBGE/upbge/issues</url>
<screenshots>
<screenshot type="default">
<image>https://upbge.org/img/1.jpg</image>
</screenshot>
<screenshot>
<image>https://upbge.org/img/2.jpg</image>
</screenshot>
<screenshot>
<image>https://upbge.org/img/3.jpg</image>
</screenshot>
<screenshot>
<image>https://upbge.org/img/4.jpg</image>
</screenshot>
</screenshots>
</component>
90 changes: 90 additions & 0 deletions org.upbge.UPBGE.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[Desktop Entry]
Name=UPBGE
GenericName=3D modeler
GenericName[ar]=3D المنمذج ثلاثي الأبعاد
GenericName[ca]=Modelador 3D
GenericName[cs]=3D modelování
GenericName[da]=3D-modellering
GenericName[de]=3D-Modellierer
GenericName[el]=Μοντελοποιητής 3D
GenericName[es]=Modelador 3D
GenericName[et]=3D modelleerija
GenericName[fi]=3D-mallintaja
GenericName[fr]=Modeleur 3D
GenericName[gl]=Modelador 3D
GenericName[hu]=3D modellező
GenericName[it]=Modellatore 3D
GenericName[ja]=3D モデラー
GenericName[lt]=3D modeliavimas
GenericName[nb]=3D-modellering
GenericName[nl]=3D-modeller
GenericName[pl]=Modelowanie 3D
GenericName[pt_BR]=Modelador 3D
GenericName[ro]=Arhitect 3D
GenericName[ru]=Редактор 3D-моделей
GenericName[tr]=3D modelleyici
GenericName[uk]=Редактор 3D-моделей
GenericName[wa]=Modeleu 3D
GenericName[zh_CN]=3D 建模
GenericName[zh_TW]=3D 模型
Comment=3D modeling, animation, rendering and post-production
Comment[ar]=3D النمذجة، الرسوم المتحركة، والتجسيد، وما بعد الإنتاج
Comment[ast]=Modeláu 3D, animación, renderizáu y postproducción
Comment[eu]=3D modelatzea, animazioa, errendatzea eta post-produkzioa
Comment[be]=Праграма прасторавага мадэлявання, анімацыі, апрацоўкі відэа і давядзення відэапрадукцыі
Comment[bn]=ত্রিমাত্রিক মডেল, অ্যানিমেশন, রেন্ডারিং এবং পোস্ট-উৎপাদন
Comment[bs]=3D modeliranje, animacija, obrada i postprodukcija
Comment[bg]=3D моделиране, анимиране, рендиране и пост-продукция
Comment[ca]=Modelat 3D, animació, renderització i post-producció
Comment[ca@valencia]=Modelat 3D, animació, renderització i post-producció
Comment[crh]=3B modelleme, animasyon, işleme ve son üretim
Comment[cs]=3D modelování, animace, rederování a postprodukce
Comment[da]=3D-modellering, animation, rendering og efterbehandling
Comment[de]=3D-Modellierung, Animation, Rendering und Nachbearbeitung
Comment[nl]=3d-modelleren, animeren, renderen en post-productie
Comment[el]=Μοντελοποίηση 3D, κινούμενα σχέδια, αποτύπωση και οργάνωση διαδικασίας μετά-την-παραγωγή
Comment[eo]=3D-modelado, animacio, renderado kaj postproduktado
Comment[es]=Modelado 3D, animación, renderizado y post-producción
Comment[et]=Kolmemõõtmeline modelleerimine, animeerimine, esitlemine ja järeltöötlemine
Comment[fi]=3D-mallinnus, -animaatiot, -renderöinti ja -tuotanto
Comment[fr]=Modélisation 3D, animation, rendu et post-production
Comment[fr_CA]=Modélisation 3D, animation, rendu et post-production
Comment[gl]=Modelado 3D, animación, renderizado e postprodución
Comment[hu]=3D modellek és animációk létrehozása és szerkesztése
Comment[is]=Þrívíddarmódel, hreyfimyndir, myndgerð og frágangur myndskeiða
Comment[it]=Modellazione 3D, animazione, rendering e post-produzione
Comment[ja]=3Dモデリング、アニメーション、レンダリング、ポストプロダクションのツール
Comment[ko]=3D 모델링, 애니메이션, 렌더링과 포스트 프로덕션
Comment[lt]=3D modeliavimas, animacijų kūrimas, atvaizdavimas ir tobulinimas
Comment[lv]=3D modelēšana, animācija, renderēšana un pēcapstrāde
Comment[ms]=Pemodelan, animasi, penerapan dan post-produksi 3D
Comment[nb]=3D-modellering, animasjon, rendering og postproduksjon
Comment[oc]=Modelizacion 3D, animacion, rendut e post-produccion
Comment[pl]=Modelowanie 3D, animacja, renderowanie i postprodukcja
Comment[pt]=Modelação 3D, animação, renderização e pós-produção
Comment[pt_BR]=Modelagem 3D, animação, renderização e pós-produção
Comment[ro]=Modelare, animare, afișare și post-producție 3D
Comment[ru]=3D-моделирование, анимация, рендеринг и компоновка
Comment[sl]=3D modeliranje, animacija, izrisovanje in nadaljnje obdelovanje
Comment[sq]=Animacion i modeleve 3D, rregullim dhe më pas prodhim
Comment[sr]=3Д моделовање, анимација, исцртавање и постпродукција
Comment[sv]=3d-modellering, animering, rendering och efterbehandling
Comment[ta]=முப்பரிமாண ஒப்புருவாக்கம், அசைவூட்டம், காட்சியாக்கம் மற்றும் உருவாக்கத்துக்கு பிந்தைய செயல்பாடுகள்
Comment[tg]=Моделсозии 3D, аниматсия, пешниҳод ва истеҳсоли баъдӣ
Comment[tr]=3B modelleme, animasyon, işleme ve son üretim
Comment[uk]=Програма просторового моделювання, анімації, обробки відео та доведення відеопродуктів
Comment[vi]=Tạo hình mẫu 3D, hoạt họa, dựng hình và các công việc hậu kỳ
Comment[wa]=Modelaedje 3D, animåcion, rindou eyet après-produccion
Comment[zh_HK]=3D 模型、動畫、算圖和後製
Comment[zh_CN]=3D 建模、动画、渲染和后期制作
Comment[zh_TW]=3D 模型、動畫、算圖和後製
Keywords=3d;cg;modeling;animation;painting;sculpting;texturing;video editing;video tracking;rendering;render engine;cycles;python;
Exec=blender %f
Icon=upbge
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
Terminal=false
Type=Application
PrefersNonDefaultGPU=true
X-KDE-RunOnDiscreteGpu=true
Categories=Graphics;3DGraphics;
MimeType=application/x-blender;
StartupWMClass=Blender
79 changes: 79 additions & 0 deletions org.upbge.UPBGE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
id: org.upbge.UPBGE
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: blender
finish-args:
- "--share=ipc"
- "--socket=wayland"
- "--socket=fallback-x11"
- "--socket=pulseaudio"
- "--device=dri"
- "--share=network"
- "--filesystem=host"
TingPing marked this conversation as resolved.
Show resolved Hide resolved
- "--filesystem=/run/spnav.sock:ro"
- "--env=SPNAV_SOCKET=/run/spnav.sock"
- "--env=TMP_DIR=/tmp"
- "--env=TMP=/tmp"
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
add-extensions:
org.upbge.UPBGE.Codecs:
directory: lib/codecs
add-ld-path: lib
bundle: true
autodelete: true
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
version: '22.08'
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
add-ld-path: "."
cleanup-commands:
- mkdir -p /app/lib/ffmpeg
modules:
- shared-modules/libdecor/libdecor-0.1.1.json
- name: x264
config-opts:
- "--prefix=/app/lib/codecs"
- "--enable-lto"
- "--enable-pic"
- "--enable-shared"
- "--disable-cli"
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
commit: baee400fa9ced6f5481a728138fed6e867b0ff7f
cleanup:
- "/lib/codecs/include"
- "/lib/codecs/lib/pkgconfig"
- name: upbge
buildsystem: simple
build-commands:
- install -Dm755 blender.sh /app/bin/blender
- mv blender /app/blender
- install -Dm644 $FLATPAK_ID.desktop /app/share/applications/$FLATPAK_ID.desktop
- desktop-file-edit --set-icon=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
- install -Dm644 /app/blender/upbge.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg
- install -Dm644 /app/blender/upbge-symbolic.svg /app/share/icons/hicolor/symbolic/apps/$FLATPAK_ID-symbolic.svg
- cd /app/blender/*.*/datafiles && mv locale /app/share/locale && ln -sf /app/share/locale locale
- install -Dm644 $FLATPAK_ID.appdata.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml
sources:
- type: archive
url: https://github.com/UPBGE/upbge/releases/download/v0.36.1/upbge-0.36.1-linux-x86_64.tar.xz
Copy link
Contributor

Choose a reason for hiding this comment

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

no build from source?

Copy link
Author

Choose a reason for hiding this comment

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

Building Blender and its forks from source is extremely convoluted and not sustainable. Building each dependency from source is currently not very well supported by Blender, and as such you need to use the pre-compiled binaries which in return causes problems with building in a sandbox because of how their build system works. If there's a problem with this, please take it up to the official Blender Flatpak because I'm following their footsteps.

sha256: 0d53fdace0f9755c3475e5cb98dfee3e63f9968aa2b7fe516b0a8c4b1326ca4f
strip-components: 0
- type: shell
commands:
- mv upbge*linux* blender
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
- type: script
commands:
- cd /app/blender
- exec ./blender "$@"
dest-filename: blender.sh
- type: file
url: https://raw.githubusercontent.com/UPBGE/upbge/v0.36.1/release/freedesktop/org.upbgeteam.UPBGE.appdata.xml
sha256: ce481e326de27b9f73350f1c48ea6854abe8c7c44b211f340918c6d211f85b01
- type: file
path: org.upbge.UPBGE.desktop
sha256: 3296656960080be4eac9458c908dc61d1250f4b5634c2922cb4a7da70e6fef62
- type: file
path: org.upbge.UPBGE.appdata.xml
bbhtt marked this conversation as resolved.
Show resolved Hide resolved
sha256: 344efe06b4d7e285d0361b4c279eb53ab1d85e6c0a1b8b157fab91a5c6d4864f
bbhtt marked this conversation as resolved.
Show resolved Hide resolved

1 change: 1 addition & 0 deletions shared-modules
Submodule shared-modules added at 17c149