Skip to content

Commit

Permalink
fix nostr purple icon & local flatpak build
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jan 29, 2025
1 parent 34065b1 commit 2a41d24
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build-flatpak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ cabal build
# Remove existing build directory
rm -rf flatpak/build-dir

# Get version from local git repository
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "dev")
TODAY=$(date +%Y-%m-%d)
APPDATA="flatpak/com.futrnostr.futr.appdata.xml"

# Copy template if appdata.xml doesn't exist
if [ ! -f "$APPDATA" ]; then
cp flatpak/com.futrnostr.futr.appdata.xml.template "$APPDATA"
fi

# Add new release entry at the top of releases section
sed -i "/<releases>/a \ <release version=\"$VERSION\" date=\"$TODAY\">\n <description>\n <p>Release version $VERSION</p>\n </description>\n </release>" "$APPDATA"

# Create the Flatpak bundle
flatpak-builder --force-clean flatpak/build-dir flatpak/com.futrnostr.futr.yml

Expand Down
1 change: 1 addition & 0 deletions flatpak/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build-dir/
com.futrnostr.futr.appdata.xml
Binary file modified resources/icons/nostr-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a41d24

Please sign in to comment.