Skip to content

Commit 189141f

Browse files
authored
Merge pull request #280 from fperera123/development
Update flathub build metainfo and sources.
2 parents 9a449b3 + 0b4a30f commit 189141f

6 files changed

+20498
-19
lines changed

.github/UPDATING-FLATHUB-RELEASE.md

+20-12
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,29 @@ sudo apt install flatpak-builder
2626
## Process
2727

2828
1. **Clone the Repository:**
29-
Clone the Flathub repository from https://github.com/flathub/rocks.poopjournal.librelinkupdesktop
29+
Clone or fork the Flathub repository from https://github.com/flathub/rocks.poopjournal.librelinkupdesktop.
3030

3131
2. **Update the Manifest:**
32-
Modify the manifest file with the new tag and commit.
32+
Modify the manifest file with the new tag and commit the changes.
3333

34-
3. **Build and Install:**
35-
Execute `flatpak-builder --user --install --force-clean build rocks.poopjournal.librelinkupdesktop.yml` to build and install the application.
34+
3. **Generate Generated Sources:**
35+
To build locally, you may copy the generated sources from https://github.com/Crazy-Marvin/LibreLinkUpDesktop or regenerate a new file as described in the "Updating Node Modules" section.
3636

37-
4. **Run the Application:**
38-
Launch the application using `flatpak run rocks.poopjournal.librelinkupdesktop`.
37+
4. **Build and Install:**
38+
Execute the command `flatpak-builder --user --install --force-clean build rocks.poopjournal.librelinkupdesktop.yml` to build and install the application.
3939

40-
5. **Finalize the Update:**
41-
If the application runs successfully, commit and push the changes to the repository for the new release.
40+
5. **Run the Application:**
41+
Launch the application using the command `flatpak run rocks.poopjournal.librelinkupdesktop`.
42+
43+
6. **Finalize the Update:**
44+
If the application runs successfully, commit and push the changes (`generated-sources.json` and `rocks.poopjournal.librelinkupdesktop.yml` files) to the repository. Then, create a pull request to the master branch for the new release.
4245

4346
## Updating Node Modules
4447

45-
If the node modules have been updated, follow these steps to update `generated-sources.json`.
48+
If the node modules have been updated, follow these steps to update the `generated-sources.json` file.
4649

4750
### Prerequisites
48-
- python 3.8
51+
- Python 3.8
4952
- pipx
5053
- flatpak-node-generator
5154

@@ -68,5 +71,10 @@ If the node modules have been updated, follow these steps to update `generated-s
6871
3. **Generate Sources:**
6972
Run `flatpak-node-generator npm package-lock.json` to generate the new sources.
7073

71-
4. **Update the Flathub Repository:**
72-
Copy the updated `generated-sources.json` file to the Flathub repository.
74+
4. **Test the Build Locally:**
75+
Follow the guide above to test the build locally.
76+
77+
5. **Update the Repository:**
78+
Commit the updated `generated-sources.json` file to the LibreLinkUpDesktop repository.
79+
80+
Note: Ensure the `generated-sources.json` file is present in both the Flathub repository and the upstream repository.

flathub/rocks.poopjournal.librelinkupdesktop.metainfo.xml

+13-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<url type="homepage">https://github.com/Crazy-Marvin/LibreLinkUpDesktop</url>
1717
<url type="vcs-browser">https://github.com/Crazy-Marvin/LibreLinkUpDesktop/</url>
1818
<url type="translate">https://hosted.weblate.org/engage/librelinkupdesktop/</url>
19-
<url type="contact">mailto:marvin@poopjournal.rocks?subject=LibreLinkUpDesktop%20on%20Flathub</url>
19+
<url type="contact">https://poopjournal.rocks/blog/contact/</url>
2020
<url type="donation">https://poopjournal.rocks/donate/</url>
2121
<url type="bugtracker">https://github.com/Crazy-Marvin/LibreLinkUpDesktop/issues</url>
2222

@@ -39,9 +39,20 @@
3939
<caption>Settings</caption>
4040
</screenshot>
4141
</screenshots>
42+
43+
<keywords>
44+
<keyword translate="no">diabetes</keyword>
45+
<keyword translate="no">librelink</keyword>
46+
<keyword translate="no">librelinkup</keyword>
47+
<keyword translate="no">blood sugar</keyword>
48+
<keyword translate="no">health</keyword>
49+
<keyword translate="no">desktop</keyword>
50+
<keyword translate="no">electron</keyword>
51+
</keywords>
52+
4253
<releases>
43-
<release version="0.1.8" date="2024-04-06"/>
4454
<release version="0.1.9" date="2024-04-10"/>
55+
<release version="0.1.8" date="2024-04-06"/>
4556
</releases>
4657
<content_rating type="oars-1.1"/>
4758

0 commit comments

Comments
 (0)