Comments (5)
Merged, thanks @mcoghill100 !
from laigter.
That image was not maintained by me, and i know almost nothing about flathub or flatpacks sadly. So it is not in my plans to update it, at least on my own. If someone helps me with this i would appreciate it though.
from laigter.
Hey @azagaya
I did some digging and was able to build the newest version and launch it using flatpak. It looks like the manifest for the previous version was stored here:
https://github.com/flathub/io.itch.azagaya.Laigter
So I copied the .yaml and .patch file and ran the following commands to test the build/run locally
get URL for release https://github.com/azagaya/laigter/archive/refs/tags/1.11.0.tar.gz
download .tar.gz and run "shasum -a 256 laigter-1.11.0.tar.gz" to get the sha-256 entry
sudo dnf install flatpak flatpak-builder
flatpak install flathub org.kde.platform//5.15-21.08 org.kde.Sdk//5.15-21.08
created an empty directory to place the .yaml and .patch file
update the .yaml and .patch file to reflect the newer version (see below)
created a "test_build" folder in the empty directory
followed the following tutorial on how to build it: https://docs.flatpak.org/en/latest/first-build.html -
ran "flatpak-builder test_build io.itch.azagaya.Laigter.yaml --force-clean"
It compiled successfully so I created a "repo" folder in the originally directory ran "flatpak-builder --repo=repo --force-clean test_build io.itch.azagaya.Laigter.yaml"
added that repo to flatpak "flatpak --user remote-add --no-gpg-verify tutorial-repo repo"
installed the app from that repo "flatpak --user install tutorial-repo io.itch.azagaya.Laigter.yaml"
then launched the app via flatpak "flatpak run io.itch.azagaya.Laigter"
updated .yaml file:
app-id: io.itch.azagaya.Laigter
runtime: org.kde.Platform
runtime-version: "5.15-21.08"
sdk: org.kde.Sdk
command: laigter
rename-icon: laigter
rename-desktop-file: laigter.desktop
rename-appdata-file: laigter.appdata.xml
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --filesystem=home
- --device=dri
modules:
- name: laigter
buildsystem: qmake
sources:
- type: archive
url: https://github.com/azagaya/laigter/archive/refs/tags/1.11.0.tar.gz
sha256: 77823b770f099843e1c0f6408156367c3f12b22dc897781aebe079c8a67c62e4
- type: patch
path: appdata-fixes.patch
post-install:
- sed -i 's/<icon name="laigter"/<icon name="$FLATPAK_ID"/' dist/x-laigter-project.xml
- install -Dm644 dist/x-laigter-project.xml /app/share/mime/packages/$FLATPAK_ID.xml
Updated .patch file
--- laigter-1.11.0/dist/laigter.appdata.xml-orig 2022-02-06 16:53:08.756065009 -0500
+++ laigter-1.11.0/dist/laigter.appdata.xml 2022-02-06 17:47:27.122850012 -0500
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2019 Pablo Ivan Fonovich <[email protected]> -->
<component type="desktop">
- <id>laigter</id>
+ <id>io.itch.azagaya.Laigter</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>Laigter</name>
<summary>Tool to generate normal, specular, occlussion and parallax maps for 2D textures</summary>
- <launchable type="desktop-id">laigter</launchable>
+ <launchable type="desktop-id">laigter.desktop</launchable>
<description>
<p>
Laigter is a tool that automatically generates maps for dynamic lighting effects
@@ -29,4 +29,18 @@
<url type="donation">https://www.patreon.com/azagaya</url>
<developer_name>Pablo Ivan Fonovich</developer_name>
<update_contact>[email protected]</update_contact>
+ <releases>
+ <release version="1.11.0" date="2023-08-15" />
+ <release version="1.10.7" date="2021-10-18" />
+ <release version="1.10.1" date="2020-07-26" />
+ <release version="1.10" date="2020-07-05" />
+ <release version="1.9.2" date="2020-05-30" />
+ <release version="1.9.1" date="2020-05-10" />
+ <release version="1.9" date="2020-04-16" />
+ <release version="1.8.1" date="2020-02-08" />
+ <release version="1.8" date="2019-12-09" />
+ <release version="1.7" date="2019-10-05" />
+ <release version="1.6" date="2019-09-04" />
+ </releases>
+ <content_rating type="oars-1.1" />
</component>
and based on reading this page https://docs.flathub.org/docs/for-app-authors/maintenance I think updating the .yaml and .patch files in the original repo I linked will have flathub will automatically push out the updates. However when I launched this flatpak Laigter version I noticed that it respected my dark theme in Gnome which the appimage did not:
Appimage with dark theme enabled:
Flatpak with dark theme enabled:
Not sure if this is a make option or a difference in the KDE/QT version used.
from laigter.
I was able to update the SDK to 5.15.-23.08 and it was able to launch:
flatpak install flathub org.kde.platform//5.15-23.08 org.kde.Sdk//5.15-23.08
app-id: io.itch.azagaya.Laigter
runtime: org.kde.Platform
runtime-version: "5.15-23.08"
sdk: org.kde.Sdk
command: laigter
rename-icon: laigter
rename-desktop-file: laigter.desktop
rename-appdata-file: laigter.appdata.xml
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --filesystem=home
- --device=dri
modules:
- name: laigter
buildsystem: qmake
sources:
- type: archive
url: https://github.com/azagaya/laigter/archive/refs/tags/1.11.0.tar.gz
sha256: 77823b770f099843e1c0f6408156367c3f12b22dc897781aebe079c8a67c62e4
- type: patch
path: appdata-fixes.patch
post-install:
- sed -i 's/<icon name="laigter"/<icon name="$FLATPAK_ID"/' dist/x-laigter-project.xml
- install -Dm644 dist/x-laigter-project.xml /app/share/mime/packages/$FLATPAK_ID.xml
Then run flatpak-builder --repo=repo --force-clean test_build io.itch.azagaya.Laigter.yaml
It doesn't seem to like anything 6.x though
from laigter.
Hey! thanks a lot for your time!
So we only need to update the files here with your provided patch and yaml? Would you kindly do a pull request there?
from laigter.
Related Issues (20)
- Preview Export Is Cropped HOT 7
- Low contrast icons on dark OSX HOT 5
- Neighbour selector is empty HOT 6
- Zoom out button just zoom in (idem with mouse wheel) Pop.Os! 20.10 HOT 3
- Minor Spelling Errors (English Translation) HOT 1
- The View doesn't show anything HOT 6
- itch.io distribution improvements HOT 4
- What is preset profile ? HOT 1
- Alpha settings in presets? HOT 2
- Add the ability to export and import neighbour presets HOT 3
- Crash on macos when importing HOT 1
- you are not an engineer, never were, and never will be close. Mechanical Engineering is the ONLY Engineering, period. HOT 2
- Specular maps are black when "tile" mode is enabled
- Blank window on Linux HOT 7
- Malware false positive report HOT 7
- Chinese language selector is not working HOT 1
- Won't Start After Initial Run on Windows 10 HOT 8
- App doesn't start on wayland HOT 5
- Sometimes Bump textures seem to render in an incorrect way HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laigter.