-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Format Code #71
Format Code #71
Conversation
hsbasu
commented
Feb 10, 2024
- Using custom script to extract version from debian/changelog
- Fix tab spacing in metadata file
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.
added comments
I built both snap and flatpak locally on my system. And tested the app. Both of them are working. |
I think we should change the snap and flatpak workflow so that it always checks for any build errors on any branch and PR. This way before creating a PR we should be able to fix any build issue. |
I want to know that , lets say i'm building new version(1.0.3) and Im compiling the flatpak or snap , how can i Change the version to 1.0.3, or is it going to pick when it is released |
It will pick the version automatically. You just need to update these files:
After you have updated the Edit: I think you might also need to use |
@amit9838 I would suggest using the |
I tested this thing, but it is not building the app in runner in debug mode, and I think it not fesible to always build the project and generate new package. And i think there is one more issue of dependency of project over the changelog file in the deb dir(it need to run a script first) to make any new release. import re
def get_package_version(file_path):
with open(file_path, 'r') as file:
content = file.read()
version_match = re.search(r"version:\s*'([\d.]+)'", content)
if version_match:
return version_match.group(1)
else:
return None
meson_file_path = 'meson.build'
version = get_package_version(meson_file_path)
if version:
print(f"The package version is: {version}")
else:
print("Package version not found in the meson.build file.") |
Which runner did you use and how? |
I mean Builder |
Which script are you saying? Can you explain?
Debian packaging does not work that way. For debian packaging, you create the |
Give me some time. Leave the PR as it is. I'll test it with There they say that to build a flatpak you just need to run
If these two steps does not show any issue, then everything's alright. |
@amit9838 Can you paste the error that you are getting on gnome-builder? In my case its showing this:
because source and target directory are on two different partitions. |
Have you tried building using play button given in the menubar (center) |
I mean this command, So, you can create the changelog file, without modefing the meson.build file right? |
Yes. Of course. I changed it to dynamic version so that the |
Yes. I clicked on that to build. Actually, gnome-builder is just an IDE like VS Code. It's not necessary to build flatpak or snaps. And IDE, you can use anything, be it gnome-builder or Code or Atom. |
Ok, so deb build entirly depends on changelog file. So lets remove dynamic versioning from. For now we can change it manually on new release. W'll fix it later. |
Not entirely. But it's part of it. It's more complex than that. |
I'll remove the versioning part from this PR. |
7c64e28
to
6726c76
Compare
@amit9838 I updated this commit and now it only fixes the tab spacing in the metadata file. |
6726c76
to
6488171
Compare
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.
Thnaks, LGTM