-
Notifications
You must be signed in to change notification settings - Fork 150
Add Flatpak and desktop and metainfo.xml file #536
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
Open
kevinsmia1939
wants to merge
7
commits into
Kitware:master
Choose a base branch
from
kevinsmia1939:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+141
−0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9386f5b
add flatpak
e891be9
Merge branch 'Kitware:master' into master
kevinsmia1939 eb45418
update flatpak
db4d08d
update flatpak
c9d1340
remove file
100dfb9
remove file
88f50a6
fix desktop category and metainfo
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
This file contains hidden or 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,3 @@ | ||
| { | ||
| "only-arches": ["x86_64"] | ||
| } |
This file contains hidden or 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,11 @@ | ||
| [Desktop Entry] | ||
| Version=1.0 | ||
| Name=TeleSculptor | ||
| GenericName=Aerial Photogrammetry | ||
| Comment=Photogrammetry designed with a focus on aerial video | ||
| Exec=TeleSculptor %U | ||
| Terminal=false | ||
| Type=Application | ||
| Icon=org.telesculptor.TeleSculptor | ||
| Categories=Qt;Science;DataVisualization;Video;AudioVideo;ImageProcessing;Geoscience;3DGraphics | ||
|
|
39 changes: 39 additions & 0 deletions
39
packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
This file contains hidden or 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,39 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <component type="desktop"> | ||
| <id>org.telesculptor.TeleSculptor</id> | ||
| <launchable type="desktop-id">org.telesculptor.TeleSculptor.desktop</launchable> | ||
| <name>TeleSculptor</name> | ||
| <summary>Photogrammetry designed with a focus on aerial video</summary> | ||
| <metadata_license>CC0-1.0</metadata_license> | ||
| <project_license>BSD-3-Clause</project_license> | ||
| <description> | ||
| <p> | ||
| TeleSculptor is a cross-platform desktop application for photogrammetry. | ||
| It was designed with a focus on aerial video, such as video collected from | ||
| UAVs, and handles geospatial coordinates and can make use of metadata, | ||
| if available, from GPS and IMU sensors. However, the software can also work | ||
| with non-geospatial data and with collections of images instead of metadata. | ||
| TeleSculptor uses Structure-from-Motion techniques to estimate camera | ||
| parameters as well as a sparse set of 3D landmarks. | ||
| It uses Multiview Stereo techniques to estimate dense depth maps on key | ||
| frame and then fuses those depth maps into a consistent surface mesh which | ||
| can be colored from the source imagery. | ||
| </p> | ||
| </description> | ||
| <url type="homepage">https://telesculptor.org/</url> | ||
| <url type="bugtracker">https://github.com/Kitware/TeleSculptor/issues</url> | ||
| <developer_name>Kitware</developer_name> | ||
| <screenshots> | ||
| <screenshot type="default"> | ||
| <image>https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png</image> | ||
| </screenshot> | ||
| <screenshot> | ||
| <image>https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png</image> | ||
| </screenshot> | ||
| </screenshots> | ||
| <content_rating type="oars-1.1"/> | ||
| <releases> | ||
| <release version="1.2.0" date="2021-09-21"> | ||
| </release> | ||
| </releases> | ||
| </component> |
This file contains hidden or 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,88 @@ | ||
| app-id: org.telesculptor.TeleSculptor | ||
| runtime: org.kde.Platform | ||
| runtime-version: '5.15' | ||
| sdk: org.kde.Sdk | ||
| command: TeleSculptor | ||
| finish-args: | ||
| - --share=ipc | ||
| - --socket=x11 | ||
| - --device=dri | ||
| - --filesystem=home | ||
| cleanup: | ||
| - /include | ||
| - /lib/pkgconfig | ||
| - /share/man | ||
| - "*.la" | ||
| - "*.a" | ||
|
|
||
| modules: | ||
| - name: lapack | ||
| buildsystem: cmake-ninja | ||
| builddir: true | ||
| config-opts: | ||
| - -DCMAKE_BUILD_TYPE=Release | ||
| - -DBUILD_SHARED_LIBS=ON | ||
| - -DBUILD_TESTING=OFF | ||
| - -DLAPACKE=ON | ||
| - -DCBLAS=ON | ||
| sources: | ||
| - type: archive | ||
| url: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.0.tar.gz | ||
| sha256: 328c1bea493a32cac5257d84157dc686cc3ab0b004e2bea22044e0a59f6f8a19 | ||
| x-checker-data: | ||
| type: anitya | ||
| project-id: 1534 | ||
| stable-only: true | ||
| url-template: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v$version.tar.gz | ||
|
|
||
| # TeleSculptor need libicui18n.so.60 | ||
| - name: ICU-60 | ||
| subdir: source | ||
| config-opts: | ||
| - --disable-static | ||
| - --enable-shared | ||
| - --disable-samples | ||
| sources: | ||
| - type: archive | ||
| url: https://github.com/unicode-org/icu/releases/download/release-60-3/icu4c-60_3-src.tgz | ||
| sha256: 476287b17db6e0b7da230dce4b58e8e5669b1510847f82cab3647920f1374390 | ||
|
|
||
| # Install the binary instead of building from source, I can't figured it out. | ||
| # Use source file only for LICENSE and icon file, self-extract file does not extract LICENSE. | ||
| - name: TeleSculptor | ||
| buildsystem: simple | ||
| ensure-writable: | ||
| - /lib | ||
| - /share | ||
| build-commands: | ||
| - chmod +x TeleSculptor-1.2.0-Linux-x86_64.sh | ||
| - ./TeleSculptor-1.2.0-Linux-x86_64.sh --skip-license | ||
| - cp -r {bin,lib,share} ${FLATPAK_DEST} | ||
| - cp -r sourcefile/LICENSE ${FLATPAK_DEST}/share/telesculptor | ||
| - mkdir -p /app/share/icons/hicolor/512x512/apps | ||
| - cp -r sourcefile/gui/icons/512x512/telesculptor.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png | ||
| - install -Dm0644 $FLATPAK_ID.metainfo.xml ${FLATPAK_DEST}/share/metainfo/$FLATPAK_ID.metainfo.xml | ||
| - install -Dm0644 $FLATPAK_ID.desktop ${FLATPAK_DEST}/share/applications/$FLATPAK_ID.desktop | ||
| sources: | ||
| - type: file | ||
| url: https://github.com/Kitware/TeleSculptor/releases/download/v1.2.0/TeleSculptor-1.2.0-Linux-x86_64.sh | ||
| sha256: 29044a438af721a5819fdf79f383527d63d49cfff95fb887b3b2accbaac22398 | ||
| x-checker-data: | ||
| type: anitya | ||
| project-id: 222360 | ||
| stable-only: true | ||
| url-template: https://github.com/Kitware/TeleSculptor/releases/download/v$version/TeleSculptor-$version-Linux-x86_64.sh | ||
| - type: archive | ||
| url: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v1.2.0.tar.gz | ||
| x-checker-data: | ||
| type: anitya | ||
| project-id: 222360 | ||
| stable-only: true | ||
| url-template: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v$version.tar.gz | ||
| sha256: eb7c04a15f3c14699810815d0edaab70bf225a123c68fd5417a81fb36589fb81 | ||
| dest: sourcefile | ||
| - type: file | ||
| path: org.telesculptor.TeleSculptor.metainfo.xml | ||
| - type: file | ||
| path: org.telesculptor.TeleSculptor.desktop | ||
|
|
||
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 think this is okay. Another option might be
com.kitware.TeleSculptor, but I'm not sure what rules are used to determine what this name should be.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.
Since the new homepage is telesculptor.org, would not the org.telesculptor.TeleSculptor be better?
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.
Probably. I'm not suggesting that this needs to be changed, I'm just trying to figure out how these ids are chosen and what the conventions are. You said you've done this for other Kitware open source tools right? Do those follow the same conventions?
Uh oh!
There was an error while loading. Please reload this page.
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.
The naming follow "reverse DNS"
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#file-naming
Usually, it would be the main website of the software, like org.paraview.ParaView.
Now, the name must have 2 dots. So the name usually repeats. if it is too short.
But of course, it think it is better for you to pick the name you prefer.
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.
org.telesculptor.TeleSculptorseems correct then, especially if ParaView isorg.paraview.ParaViewsince that is a highly analogous example.