Repository navigation
Description
This project aims to improve and automate multiple things in Synfig, automation is very cool, the first part is strongly related to git, and I have in mind some extra ideas revolving around using Synfig's git commit history, so read on if you are a git/Linux enthusiast or generally interested!
Summary
1. Automated Release Notes Generator
Currently, Synfig's release notes are written in ChangeLog.md manually, this is about creating a script that uses Synfig's repository git conventional commits history to:
- Automatically generate nice-looking Synfig release notes grouped by change type (fix, feature, etc.)
- Outputs them in Markdown/HTML format
- Shows contributors how their Pull Requests will affect the release notes when merged, which improves the contributor's change description, enhancing release notes
2. Linux Packaging Scripts Fixes/Additions
Currently, Synfig is bundled to work on Linux using AppImage v1.0 scripts, and AppImage v1.0 is outdated and has the critical issue that it doesn't work smoothly on newer systems (Ubuntu v22.04 and others); in this project, the AppImage scripts will be updated to use the latest AppImage version and potentially write scripts for automated Debian and Flatpak packages.
Extra Ideas
These are some extra ideas that excite me, we can work on them if we have time
1. Synfig Unwrapped
Create a script that also uses the Git commit history of Synfig to dynamically generate multiple short Synfig-themed videos that showcase the achievements and metrics of each contributor who contributed to Synfig per week or release; this would be a nice touch to contributors and would motivate them to contribute more.
The result would be similar to GitHub Unwrapped
2. Improve Change Description Using Large Language Models (LLMs)
Main Project Benefits
For Synfig Artists
- Save time, reduce frustration, and gain new Synfig artists by making Synfig easier to download on Linux systems
- Potentially grant new artists flexibility by providing them with multiple options for downloading Synfig on Linux
For Synfig Developers
- Free up valuable time by removing the burden of modifying release notes manually
- Eliminate the time spent supporting users with installation problems on Linux systems
For Both Synfig Artists and Developers
- Improve the looks of the release notes for easier interpretation of the changes made
- Enhance the description of the changes in the release notes for clearer understanding, by showing contributors how their pull requests/changes when added to Synfig will affect the release notes, their change note will look bad in the release notes if it isn't clear, so they will automatically improve it to make it descriptive
References
For more details check my proposal
Project details in the Synfig Docs
Project details in the Google Summer of Code website
As suggested by @mohamedAdhamc, I will use this issue to share things related to this project!
Activity
akayiz commentedon Jun 27, 2024
I will start working on the first part "Automated Release Notes Generator", while applying to work with Synfig during GSoC 2024 I already finished a portion of this script, and @mohamedAdhamc (my GSoC mentor) suggested that I list the things that I have finished until now and what remains to be done.
Any feedback or ideas would be greatly appreciated!
We have multiple things that we will still decide in the "What remains to be done" section, so check the section and give us your thoughts!
What I have finished until now
Generate markdown release notes from non-merge commits and group them by conventional commit type, currently, I group them by only 3 types (Bug Fixes, New Features, and Code Refactoring), and for each type I only show the messages of a constant number of commits (Currently hardcoded as 3)
I don't change anything in the commit message except removing the conventional commit type (like "fix:") and capitalizing the first letter, in this mode (non-merge commits) I don't retrieve anything from the pull request related to this commit
How the output currently looks (Using the Synfig repo)
Below is the git commit history of Synfig that I will use to demonstrate how the above point works, starting with the "Bug Fixes", it retrieved the first 3 non-merge commits it met (colored with orange).
I wanted to clarify another point, looking at the "New Features" (colored in yellow), it retrieved the first 3 non-merge commits, as you can see it skipped the merge commit that has an "X" next to it, so this mode retrieves all types of commits except merge commits, even the ones merged through PRs but are not in themselves merge commits like the one below with an "X"
Generate markdown release notes from merge commits with 2 modes (short and full), in short mode for each merge commit I retrieve the title of the pull request related to this commit (Looks exactly like the first point shown above), in full mode, I also retrieve its pull request description (Take care this is currently only done for merge commits)
How the full mode output currently looks
How the last commit in the Bug Fixes above looks on GitHub
You can view the code I wrote until now and even test the script yourself through the following GitHub repo
What remains to be done
Decide on the modes we will have in the script
I think both the above modes were added just for practice, especially since they focus on specific types of commits (non-merge/merge), I remember @ice0 mentioned wanting to have 2 main modes, short and full, so we need to confirm what modes we will have, and what they will do, for example, 2 modes, first one generates release notes using only commit message of all types of commits that happened in the past week, the second one does the same but in addition, retrieves pull request details for commits that were merged through PRs
Decide on how frequently will the script run (weekly/monthly/per release)
Based on this I should add some stuff to the release notes, date, and release version, and also work on being able to trigger the script to run based on the date or when a new release is launched, also I think Synfig has multiple types of releases (core and some other stuff that I don't understand completely) so if we run the script per release, I should work on being able to automatically detect the version and type of this release to write it in the release notes
Decide on how many commits will we show in the release notes
The previous decision would help with deciding that, in the project details it is mentioned to give the script a start and end commit id, but if we run the script weekly or per release I believe this can be automated without the need to manually enter the start and end commit ids
Decide on the format/looks of the release notes
Let me know what you think of the current looks of the script output and how you think we can improve it, I was also wondering if we will remove the commit id and PR number next to the commits or keep them (demonstrated in the image below from the Synfig ChangeLog.md)
Add the remaining conventional commit types (docs, chore, ci, perf, etc.)
Decide if we will add the ability to output release notes in HTML format, if yes then I should add that
Fix links in the pull request description not appearing correctly in the output markdown
If you check the second point in the things I have finished until now, you will find that links in the GitHub PR description like "3214 (comment)" and "fix 3212" don't get copied correctly, I didn't test images but they probably will also not appear correctly
Add the script to the CI pipeline by adding the ability to automatically show contributors how their unmerged changes (PRs) will affect the release notes when merged (I am very excited to work on this part)
Remove any constants in the code into an external configuration (Like max commits per type, commit types that we have, URLs, etc.)
Add unit tests for the code if needed
Write a detailed documentation on how to run/build the script
Publish the script and test it live
akayiz commentedon Jul 2, 2024
3 Day Status Update 29/June - 1/July
What I Have Done
Added grouping by all commit types
Fixed the script not detecting commit types with subcategories "(GUI)", like this
And made it add these subcategories in the release notes
Fixed issue links (fix # 2008) and PR links (# 2777) and commit SHAs (219c214) in PR descriptions getting retrieved using GitHub API as plain text without links
Before
After
Additional Remarks
Video links are retrieved correctly and they preview correctly on GitHub
Images are retrieved perfectly
Issues That I am Facing
New lines in the GitHub API retrieved PR descriptions are not identical to the new lines in the PR description in GitHub (They look worse)
For example, the PR description on GitHub
Release notes retrieved markdown PR description
As you can see new lines are not accurate, which removes paragraphs and decreases the readability and cleanness of the release notes, I tried multiple things to fix it but I didn't reach a solution to make it look exactly like in GitHub
What I Plan To Do
akayiz commentedon Jul 5, 2024
3 Day Status Update 2/July - 4/July
What I Have Done
Fixed the extra new lines that appeared in the retrieved markdown PR descriptions, to increase the readability of the release notes (This is the issue that I mentioned in the previous status update)
GitHub PR descriptions example
Before
After
Added outputting release notes in HTML format
Example focusing on the "Bug Fixes" section in release notes generated from pull requests full mode
release_notes.md
release_notes.html
Below are the full release notes files that are generated, let me know if the looks and format are as expected in markdown and especially HTML since it's important that later on you can easily style the HTML tags using CSS, which I believe will be easy in the current HTML tags, but please confirm that
release_notes.md
release_notes.html
For now, I changed the release notes generation methods to work on all types of commits and only rely on which source we would like to generate release notes from (commit messages or pull requests) and if the chosen source is pull requests then the user must specify the mode (short/full), all this is documented in detail in the repo's README
Issues That I am Facing
There are no issues currently :)
What I Plan To Do
I believe before working on adding the script in the CI cycle we should first integrate it with Synfig to generate release notes periodically, so I think it's best currently to agree on the first 4 points in the "What Remains To Be Done" section in the above comment and finish working on these points and then integrate the script with Synfig
akayiz commentedon Jul 8, 2024
Status Update 09-July-2024
What I Have Done
Currently, until we agree on some final decisions on the release notes script, I played a bit with GitHub Actions and did the below
Synfig.Status.Update.09-July-2024.mp4
Issues That I am Facing
There are no issues currently :)
What I Plan To Do
I would greatly appreciate your feedback on the above @mohamedAdhamc, @ice0
ice0 commentedon Jul 12, 2024
Looks good, but I'm thinking maybe we should add this pipeline to the draft release as well?
At least this will allow you to check what it looks like before publishing the release.
mohamedAdhamc commentedon Jul 12, 2024
Yes, I think so too.
akayiz commentedon Jul 16, 2024
Weekly Status Update 09/July till 16/July
Important video that contains additional details and showcases the above
https://drive.google.com/file/d/1jX9EFQlAJtsnw8BOB1PpsyIDVBhMyjiV/view?usp=sharing
In addition to the above, I removed a lot of constants into an external configuration
Note
Currently, the simple option that I have in mind, is if for example the following pull request is created
Then I make a GitHub Action send a comment in this pull request telling the contributor that his pull request will affect the release notes like this (Although I don't understand which release notes it will affect, based on my trial to understand your git workflow)
Lastly, let me know what you think of the slides style in status updates, this idea came to my mind while creating the showcase video :)
Thank you in advance!
mohamedAdhamc commentedon Jul 24, 2024
Hello @Ahmed-Khaled-dev ,
Yes I think this should be good -at least for now at this stage-. Just having contributors see how their addition will look like in the release notes (regardless of which release notes exactly).
I like it, it keeps the status update message briefer :).
akayiz commentedon Jul 26, 2024
Weekly Status Update 16/July till 23/July
Showcasing the first 4 points
first-four-points-showcase.mp4
Showcasing the last (5th) point (most important)
last-point-showcase.mp4
I apologize for the delay in sending this weekly status update, unexpected events caused the delay, for future updates I will send them on Thursday
The release notes generator project is technically finished, please let me know your feedback and how I should plan to deploy this in the Synfig repository
akayiz commentedon Aug 1, 2024
Weekly Status Update 25/July till 1/August
The Release Notes Generator or Release Notes Manager project as I am currently calling it, is Finished and Ready To Deploy!
What I Have Done
Added unit tests to the script
Fixed bugs that were discovered during unit testing
Made the Release Notes Manager extremely easy to deploy by converting it into a GitHub Action
Tremendously improved the looks of the code documentation
Rewrote README.md to clearly demonstrate its current features and how to use/deploy it
What I Plan To Do
Deploy the Release Notes Manager in Synfig
This is now very easy as you can see in the How To Use section, @ice0 @mohamedAdhamc please let me know your feedback and if I should create a pull request
Download a Linux distribution as a dual boot on my computer, I believe this will help a lot with the AppImage project
Start reading the AppImage documentation and planning for how I will work on this project
mohamedAdhamc commentedon Aug 1, 2024
Awesome :).
Yes, I think you should create a PR.
It would certainly help yes.
Sounds good.
p.s.
I will test the Release Note Generator out and let you know If I find anything that sticks out.
ice0 commentedon Aug 2, 2024
Hi guys!
First of all, thanks for the awesome video showing the whole process, it helps a lot.
A few questions:
commitTypesCount- if it should always be equal to the size of thecommitTypesarray, is it really needed?Looks awesome!
akayiz commentedon Aug 3, 2024
I am glad you liked them!
No, most likely I can detect the size of the
commitTypesarray, for some reason when I started I added thecommitTypesCountand it just stayed with me, but I will make sure to change it when I refactor the codeGenerally, I have in mind multiple things that I can do to refactor and improve the Release Notes Manager code and also multiple extra features that can be added to it. Still, I believe the best decision currently is to make sure I also finish the AppImage project and then if I have extra time, I can get back and improve the Release Notes Manager!
Yes, I will also consider doing that
It wouldn't affect the release notes generated using pull requests as source, and it also won't trigger the GitHub Bot that shows the contributor how his changes look like in the release notes, since both these rely mainly on the pull request title and description, not the commit message, but it will affect the release notes generated using commit messages as source
akayiz commentedon Aug 8, 2024
Weekly Status Update 4/Aug till 8/Aug
I started working on the second project which is "Simplifying Linux Download Experience"!
What I Have Done
Created 2 pull requests to add the 2 functionalities of the Release Notes Manager inside Synfig
Setup a Linux Mint virtual machine using Virtual Box
Successfully built Synfig on this VM
Refreshed my memory about AppImage and read about the different ways available to package software as an AppImage
What I Plan To Do
./2-build-production.shwhich is the folder_production/buildto build an AppImage using what's inside this folder, based on the AppImage documentation this is best done using the tool called linuxdeploy, so that's what I will tryNote
Until now I haven't checked the already-made AppImage packaging scripts in Synfig, I thought I would first try packaging it as an AppImage myself and see how it goes, let me know if you think this is the right decision currently :)
akayiz commentedon Aug 15, 2024
Weekly Status Update 11/Aug till 15/Aug
I am able to generate a working Synfig AppImage!
If you would like to test it, here is the AppImage Download Link
What I Have Done
Created a bash script that automatically generates a Synfig AppImage using only the Synfig build
The generated AppImage when tested on a Linux Mint 21 Cinnamon, opens up and at first glance, everything looks good
The output when running the generated AppImage is shown below
Thoroughly added comments in the script to demonstrate how it works and added a step-by-step README to illustrate how to use the script
Discovered the old Synfig AppImage generation files and understood some of what is going on in launch.sh which I believe is equivalent to the AppRun file, and used some lines that are in launch.sh to get my AppImage working
Questions That I Have
How can I test the AppImage to make sure it doesn't introduce new bugs in Synfig
Which set of Linux distributions are you targeting? (and also if you are targeting specific releases of each distro)
How will this script run later on?
Should I use every line in the Synfig Morevna launch.sh or does it contain outdated stuff?
I am asking this since things like
lib/ImageMagickmentioned in line 30 don't exist in the output of the Synfig build, also I don't quite understand what is going on with fontconfig at the end of the launch.sh script, although to be fair I still didn't put much time into understanding what was going on thereWhat I Plan To Do
Fix the AppImage not having the Synfig logo
Test the generated AppImage on other different and newer Linux distros
Try to understand the old AppImage scripts better
To be determined based on the answers to the above questions :)
ice0 commentedon Aug 16, 2024
Additions/suggestions:
Ubuntu dropped support for 32-bit systems, but Debian still supports them. For testing, you can use a 32-bit Debian Docker image (should be faster than installing a full OS from scratch)
Yes. @morevnaproject is doing quality tests, so I hope he can give a more detailed answer.
First you need to test, if you can run produced AppImage on systems with older libc/glibc/fontconfig libraries.
Currently we are using Debian 9 for building AppImages because
libchas backward, but not forward compatibility.So the packed libc should work fine on new systems.
We plan to migrate to Debian 10, so if you have big issues with Debian 9, I suggest to switch to Debian 10.
But building on older systems leads to another problem. For example, we use the harfbuzz library, but in newer versions they broke backward compatibility, so we had some problems with it.
Users reported that AppImage does not work on ArchLinux (they have newer packages installed), so we included harfbuzz dependencies -
fontconfig/freetypein AppImage and this led to the slow startup problem of AppImage (fontconfig rebuilds the font cache using only one thread on startup).You can read the full discussion here: #2397
We try not to stop supporting old systems unless necessary.
For testing you can use 2 distributions: Debian 9/10 for older distributions + latest Fedora/Arch Linux for newer distributions.
Github Actions. We used Travis until they replaced the open source plans and they became hard to use.
Yes, it should be useful. In this case, you only need basic skills - how to create a container with the desired OS and run a command inside the container.
Release script only builds Synfig binaries. All other dependencies (fontconfig/ImageMagick/etc configuration files) usually collected by another script. This is the reason why this folder is missing inside
_productionfolder.@morevnaproject Can you add details here?
These additional steps are needed to display the message while fontconfig is rebuilding the font cache (a very long process), otherwise users would think that the program had hang or not starting.
Discussed here: #2397
akayiz commentedon Aug 22, 2024
Weekly Status Update 18/Aug till 22/Aug
What I Have Done
Thoroughly understood @ice0's answers to my questions
Thanks a lot, your answers clarified a lot of things for me, I greatly appreciate you taking the time to send this amazingly detailed reply
Created 2 Debian 10 64-bit VMs, 1 to package Synfig as an AppImage on it and the other for testing (I got bugs while trying to create ones for Debian 9 so as suggested I switched to Debian 10)
Created a new script to clone Synfig and build it, so now for packaging Synfig as an AppImage I just run 2 scripts
Generated the Synfig AppImage on Debian 10 64-bit
Adjusted my AppImage generating script to be able to create 32-bit AppImages when run on a 32-bit system and to create 64-bit ones on 64-bit systems
What I Plan To Do
Test the AppImage generated on Debian 64-bit on the clean/testing Debian 64-bit VM
Create 2 new Debian 10 32-bit VMs for packaging Synfig and testing
Test the ability of my script to generate 32-bit AppImages on the above-created VMs
Create 2 (32-bit and 64-bit) new Arch/Fedora VMs for testing
Test my 32/64-bit generated AppImages on them
Fix any bugs that will occur (predicted to be related to harfbuzz/fontconfig/freetype)
akayiz commentedon Aug 29, 2024
Weekly Status Update 25/Aug till 29/Aug
What I Have Done
Fixed the "Bridged Network" option in VirtualBox not working on the virtual machines, which didn't give me the ability to transfer the AppImage between the virtual machines using
scpfor fast testing, but now by fixing it this improves the testing workflowGenerated Synfig's AppImage on Debian 10 64-bit using the current script and tested it on a clean Debian 10 64-bit and it runs successfully and everything looks good
Created a new Debian 10 32-bit VM and tried building Synfig on it to be able to generate the 32-bit AppImage but the Synfig build failed due to 2 automated test cases failing (bezier and bline)
Created a Fedora Workstation 40 64-bit VM and tested the generated AppImage on it, but as expected it didn't run since there were errors that came up
Fixed one of the errors that came up, but I am still working on the others
Important Note
I will be unavailable from 1/Sep to 14/Sep due to family travel, as previously communicated to Mohamed.
I am aware that my progress during the past 2 weeks has been slower than usual, this occurred due to some unexpected circumstances, including a necessary Linux-Windows dual-boot setup (In which I learned a lot about Linux)
So based on that, I will get back to work on 15/Sep and I will make sure to compensate for the past 2 weeks and get back to the regular productivity
What I Plan To Do
ice0 commentedon Sep 9, 2024
This is a known issue (#2606).
As a temporary fix you can cherry-pick commit from this PR #2618
I wish you a good time!
Awesome!
akayiz commentedon Sep 16, 2024
Status Update 12/Sep till 15/Sep
I resumed work earlier than planned to ensure all tasks are completed by the end of GSoC, and I am happy to report significant progress, the AppImage now works smoothly on Fedora 40, and all the critical errors have been fixed, also the generated AppImage works on Debian 10 64-bit, Pop!_OS 22.04, Arch, Ubuntu, and Kali (these are the ones I tested it on)
Synfig AppImage Download Link if you would like to test it
What I Have Done
Fix generated AppImage not working on Fedora 40
The generated AppImage was not working on Fedora 40 due to multiple differences (filesystem structure and window manager) and GTK/GDK compatibility issues between it and the old Debian 10 that I am generating the AppImage on, at first I was trying to fix these issues manually by setting environment variables and creating scripts to bundle libraries into the AppImage, but then I thought I would check if someone already did a script that does this, and to my surprise I found this amazing gtk script/plugin that bundles all the GTK/GDK needed libraries (GLib Schemas, GDK Pixbuf libraries and cache, librsvg, Pango, PangoCairo, etc.) inside the AppImage and suitably edits the environment variables required to make it work on all other distributions
Fix non-critical error
Failed to load pk-gtk-moduleon Fedora 40Fix generated AppImage not working on Pop!_OS 22.04 and most Debian-based distros
Since I am using this great gtk plugin the script that generates the AppImage is concise, clean, commented, and easy to understand
No harfbuzz/fontconfig errors
While testing on Fedora 40 (the latest one) and Arch I got no errors related to harfbuzz or fontconfig, I am not sure if the gtk plugin fixed them, I checked the script it uses and I can't determine for sure, but currently, I don't get any errors related to them and the startup of the Synfig AppImage is very fast
Questions That I Have
Currently the Synfig AppImage as shown above runs successfully on a lot of Linux distributions but when the AppImage is run through the command line there are some messages/warnings that come up, I want to understand if these warnings are well-known warnings that come out of Synfig and I shouldn't worry about them or if these warnings are generated by my AppImage and they might impact specific functionalities in Synfig so I should look into fixing them, it's important to note that these warnings come up on all the distributions and are not distribution-specific
Module Warnings
I would expect this is a general one in Synfig and not related to the AppImage since these modules exist inside the AppImage and I also tested the AppImage available in the Synfig Download Page and it also outputted these warnings
Plugin Warning
I expect this is normal since on a fresh install of Synfig there are no Plugins installed
Icon Warnings
I expect this is unrelated to the AppImage since no icons with these names exist as an output of the Synfig build
GdkPixbuf Criticals
I am not sure about this one and it seems to be the most important
Currently the process of generating a Synfig AppImage is straightforward and well documented in the synfig-appimage repo but I expect you would like to automate this process when a new release is created to have the AppImage generated and added as an asset in the release or uploaded somewhere, so let me know what you have in mind.
How can we test to ensure that Synfig is functioning correctly after it ran successfully, as mentioned in a previous status update are there specific manual/automated tests that we can do to confirm this?
Or is it running a enough sign that everything inside will work correctly?
What I Plan To Do
To be determined based on the answers to the above questions
mohamedAdhamc commentedon Sep 16, 2024
Great 🥳
Well, you can check this for some tests on the rendering engine + lottie exporter. Also I think there are some tests scattered in the repo here. I think also @ice0, and @morevnaproject would also know more regarding this.
Also in general, I think as long as there is no change in the code itself (which I think there probably shouldn't). A somewhat simplistic way of checking would be by comparing the build logs. If you see any new build errors/warning for example you could investigate them. But... there could probably be a better way than doing this.
akayiz commentedon Sep 28, 2024
Weekly Status Update 22/Sep till 26/Sep
What I Have Done
Started preparing the GSoC final submission URL to look clean, professional, and last for a long time by working on creating a personal static website for myself using Hugo which I will use to post a blog post that will contain my final report, and the link to that blog post will be my final submission URL
Summarized what I have done until now in concise sentences to help me while writing the content for the final report
Note
The past week I have been doing a lot of chores, especially since I will be returning to university tomorrow. Still, I will make sure to maintain my productivity and balance between work and university
What I Plan To Do
akayiz commentedon Oct 4, 2024
Weekly Status Update 29/Sep till 3/Oct
What I Have Done
Finished my portfolio and blog website.
Spent considerable time writing a detailed and well-structured GSoC final report, which serves as both my GSoC final submission URL and the primary resource for anyone with a basic software engineering background to understand the project's goals, achievements, remaining tasks, and future enhancement possibilities.
Uploaded the GSoC final report as a blog on my website and hosted the site on a professional, long-term domain. Please @mohamedAdhamc check it when you have time and let me know your feedback!
Questions That I Have
My PR, which adds automatic release notes generation, has some failed tests. I believe it's a bug in the tests since my changes only involve a GitHub workflow. The tests passed in my second PR, so could these tests be fixed on the first PR? It would look better without the failed tests. 😅
I was wondering if there is an estimate of when my PRs would get reviewed/merged.
Let me know if you'd like this implemented and how, so that I can work on it in the following week.
What I Plan To Do
mohamedAdhamc commentedon Oct 4, 2024
@Ahmed-Khaled-dev
I checked the final report and it looks good. Maybe we'd need a few more edits later on, but for now it looks good.
I'll be checking the release note generator more closely in the upcoming days.
ice0 commentedon Oct 14, 2024
Hi guys!
Sorry for the delay, was busy at work.
Yes, there's no need to worry about them. Most of the GTK-CRITICAL errors are due to using deprecated GTK methods. They will be fixed later.
Yes, that would be awesome. I also suggest generating AppImages for PRs, so anyone can test the build locally.
For manual testing, I usually do the following three things:
synfig-studio/examplefolder. I suggest usingpirates.sif. It should open the file successfully.Yes, there was an issue with the CI at that time. Please rebase and force push your commits again.
It's planned to be merged by the end of this week. It looks good to me, but I suggest waiting until Mohammed can check it as well.
I am a little late, and I'm not sure if you still have some free time, but I suggest putting your generator in the
synfig/autobuild/linux/appimagefolder and addingGenerate AppImageandUpload artifactssteps to the GitHub Actions. (if possible).It's also better not to add binary files to the project (I mean
libpk-gtk-module.so), because they can be incompatible with other architectures, such as ARM.So I suggest not to fix issue with Fedora 40 and leave it as-is for now. I am pretty sure this should be fixed by upstream (https://github.com/linuxdeploy/linuxdeploy-plugin-gtk). It looks like this is a new dependency which is not known by the plugin.
akayiz commentedon Oct 20, 2024
Hello Artem!
It's all good, thanks for the very helpful replies,
I also apologize for the delay in replying, this past week has been hectic at university, I am currently taking an operating systems course which is taking most of my time.
Great!
That's a very nice idea, I will try my best to add these features before Nov 03 (the GSoC deadline) and if I am unable to I will make sure to add them later on either way.
I will make sure to test these thoroughly, I already tested file opening on Pop OS and it works great, but I will make sure to do all three tests on multiple distros and send their results 👌🏻
I just did that but there is a check that still fails.
Sounds great!
Thank you for the suggestion, as mentioned above I will try my best to do it before Nov 03 and if I am unable to I will make sure to add them later on either way!
Thanks for mentioning this, generally this didn't cause a critical issue with Fedora 40, it was just a warning in the command line but Synfig was running fine, I will remove
libpk-gtk-module.soand do the tests you mentioned above and report the results 👌🏻ice0 commentedon Oct 21, 2024
There was an issue with the self-hosted runner. I have rerun it, and it should be okay now.
akayiz commentedon Oct 31, 2024
Status Update 31/Oct/2024
What I Have Done
Manually tested the generated Synfig AppImage using the 3 tests that @ice0 mentioned on Debian 10, Pop OS 22.04, and Fedora 40.
File Opening and the Plugin system work smoothly on all the above distributions as shown below:
However, the Lottie exporter gives an error when trying to export since it works using Python scripts and the Python dependencies that the scripts need aren't bundled inside the AppImage.
Adjusted the script to bundle some of these Python dependencies and got it to work on Debian 10, but I am still working on making it work on all the targeted distributions (Pop OS, Fedora 40, Arch, etc.)
What I Plan To Do
Update my GSoC final report to reflect the current state.
Fill in my GSoC Final Submission.
Whenever I have the time I will make sure to prioritize working on the below
Remove
libpk-gtk-module.sofrom the AppImage generator script.Adjust the AppImage generator script to fix the Lottie exporter.
Automate the generation of the Synfig AppImage on a Debian 10 machine using GitHub Actions whenever a new GitHub release is created and automate uploading the generated AppImage as an asset to the new release.