fix image scaling

This commit is contained in:
waozi committed 2026-06-22 11:39:33 -03:00
1 parent 92777d5425
commit 285a93fa58
31 files changed
+242 -11

No files matched your search

+28 -2
View File
@@ -28,6 +28,10 @@ LINUX_APPIMAGE_APPRUN := $(LINUX_APPIMAGE_DIR)/AppRun
LINUX_APPIMAGE_DESKTOP := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).desktop
LINUX_APPIMAGE_ICON := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).png
LINUX_APPIMAGE_APPDATA := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).appdata.xml
LINUX_SNAP_BUILD_DIR := $(BUILD_OBJ_DIR)/snap/linux
LINUX_SNAP_DIR := packaging/snap
LINUX_SNAP_NAME := $(APP_NAME)-linux-$(ARCH).snap
LINUX_SNAP_TARGET := $(LINUX_DIST_DIR)/$(LINUX_SNAP_NAME)
CLICK_PACKAGE ?= inbe
CLICK_TITLE ?= $(APP_TITLE)
CLICK_MAINTAINER ?= Waozi Project <[email protected]>
@@ -240,7 +244,7 @@ UNPACKAGED_AUDIO_DIR := unpackaged_assets/audio
UNPACKAGED_AUDIO_FILES := $(shell find $(UNPACKAGED_AUDIO_DIR) -type f 2>/dev/null)
MEDITATION_AUDIO_ZIP := web-assets/dl/inbe-meditation-audio-v1.zip
.PHONY: all native run run-fresh screenshot test dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows clean clean-linux clean-vendor-builds android-avd android-check-keystore android-copy-assets android-local-properties android-debug android-debug-fast android-release android-bundle android-install android-install-fast android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web chrome-web-store
.PHONY: all native run run-fresh screenshot test dist appimage click click-verify snap snap-clean vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows clean clean-linux clean-vendor-builds android-avd android-check-keystore android-copy-assets android-local-properties android-debug android-debug-fast android-release android-bundle android-install android-install-fast android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web chrome-web-store
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle click
all: native
@@ -266,6 +270,7 @@ dist:
$(MAKE) chrome-web-store && \
$(MAKE) click && \
$(MAKE) appimage && \
$(MAKE) snap && \
$(MAKE) windows && \
$(MAKE) android-release PASSWORD="$$password" && \
$(MAKE) android-bundle PASSWORD="$$password"
@@ -281,6 +286,27 @@ click-verify: $(CLICK_TARGET)
}
clickable review $(CLICK_TARGET)
snap: $(LINUX_SNAP_TARGET)
$(LINUX_SNAP_TARGET): $(TARGET) | $(LINUX_DIST_DIR) $(LINUX_SNAP_BUILD_DIR)
@command -v snapcraft >/dev/null || { \
echo "snapcraft is missing. Install with: sudo snap install snapcraft --classic"; \
exit 1; \
}
rm -rf $(LINUX_SNAP_BUILD_DIR)/snap
rm -f $(LINUX_DIST_DIR)/*.snap
cd $(LINUX_SNAP_DIR) && \
APP_VERSION=$(APP_VERSION) snapcraft \
--target-latest \
--output=$(abspath $(LINUX_SNAP_TARGET)) \
--destructive-mode
test -f $@
snap-clean:
rm -rf $(BUILD_OBJ_DIR)/snap
rm -f $(LINUX_DIST_DIR)/*.snap
rm -rf $(LINUX_SNAP_DIR)/snap
vendor-prebuilds: vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows
vendor-prebuilds-native: $(RAYLIB_A) $(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H) $(LIBOQS_A) $(CURL_PROTOCOL_CHECK)
@@ -339,7 +365,7 @@ $(GUIDE_OVERLAY_TEST): tests/guide_overlay_test.c flint/src/ui/guide.c flint/inc
-o $@ \
tests/guide_overlay_test.c
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(CLICK_BIN_DIR) $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR):
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(LINUX_SNAP_BUILD_DIR) $(CLICK_BIN_DIR) $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR):
mkdir -p $@
$(WINDOWS_BIN_DIR)/$(WIN64_ARCH) $(WINDOWS_BIN_DIR)/$(WIN32_ARCH):
Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 720 B

@@ -1,7 +0,0 @@
Initial release
• Breathing exercise tutorial with 5 steps
• Configurable settings: speed, rounds, breaths, pause duration
• Session history tracking and statistics
• Support for Linux, Windows, Android, and WebAssembly
• Dark theme with customizable colors
Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Generated
+70
View File
@@ -1,5 +1,59 @@
{
"nodes": {
"flake-compat": {
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"revCount": 69,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1760948891,
"narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nix-snapd": {
"inputs": {
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1761703712,
"narHash": "sha256-OKuNVXmHuZ0zi8T0aGWrBJizIfvdTqV1RiV0IN8GPZs=",
"owner": "nix-community",
"repo": "nix-snapd",
"rev": "f7694a0e26d890e285137e1b726b1b44038805c4",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-snapd",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1779560665,
@@ -16,6 +70,21 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1754788789,
"narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-sdl2": {
"locked": {
"lastModified": 1751274312,
@@ -34,6 +103,7 @@
},
"root": {
"inputs": {
"nix-snapd": "nix-snapd",
"nixpkgs": "nixpkgs",
"nixpkgs-sdl2": "nixpkgs-sdl2"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1017 B

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 658 B

+11
View File
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Inner Breeze
Exec=inbe
Icon=inbe
Comment=Syncable breathing, meditation, and habit practice app
Categories=Utility;Health;
Terminal=false
StartupNotify=true
StartupWMClass=inbe
Keywords=meditation;breathing;mindfulness;habits;wellness;
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>xyz.waozi.inbe</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<name>Inner Breeze</name>
<summary>Syncable breathing, meditation, and habit practice app</summary>
<description>
<p>Inner Breeze is a free, open-source practice app for breathing, meditation, and habit tracking.</p>
<p>It provides guided practice sessions with visual and audio cues, meditation timers, habit counters, session history, import and export, theme customization, and optional sync for habits, sessions, and practice progress.</p>
</description>
<launchable type="desktop-id">inbe.desktop</launchable>
<categories>
<category>Utility</category>
</categories>
<url type="homepage">https://inbe.waozi.xyz/</url>
<url type="bugtracker">https://github.com/waozixyz/inbe/issues</url>
<developer id="xyz.waozi">
<name>waozi</name>
</developer>
<provides>
<binary>inbe</binary>
</provides>
<releases>
<release version="1.4.3" date="2026-06-20"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+103
View File
@@ -0,0 +1,103 @@
name: inbe
title: Inner Breeze
summary: Syncable breathing, meditation, and habit practice app
description: |
Inner Breeze is a free, open-source practice app for breathing,
meditation, and habit tracking with visual and audio cues, meditation
timers, habit counters, session history, and optional sync.
version: '1.5.0'
license: MIT
base: core22
confinement: strict
grade: stable
contact: [email protected]
website: https://inbe.waozi.xyz/
issues: https://github.com/waozixyz/inbe/issues
architectures:
- build-on: amd64
- build-on: arm64
apps:
inbe:
command-chain: [bin/desktop-launch]
command: bin/inbe
desktop: gui/inbe.desktop
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$LD_LIBRARY_PATH
DISABLE_WAYLAND: 1
plugs:
- desktop
- desktop-legacy
- wayland
- x11
- opengl
- audio-playback
- pulseaudio
- alsa
- network
- home
extensions:
- gnome-3-38-2204
parts:
desktop-glib:
plugin: nil
stage-packages:
- libglib2.0-0
sdl2-runtime:
plugin: nil
stage-packages:
- libSDL2-2.0-0
- libSDL2-image-2.0-0
- libSDL2-ttf-2.0-0
- libgl1-mesa-glx
- libgl1-mesa-dri
- libgles2-mesa
- libglvnd0
- libdrm2
- libgbm1
- libegl1
- libxkbcommon0
- libpulse0
- libasound2
- libasound2-data
- libasound2-plugins
openssl:
plugin: nil
stage-packages:
- libssl3
- libcrypto++7
inbe:
plugin: make
source: .
build-packages:
- build-essential
- cmake
- libssl-dev
- libcurl4-openssl-dev
- pkg-config
override-build: |
make vendor-prebuilds-native
make native
install -D -m755 build/bin/linux/inbe-linux-$SNAPCRAFT_ARCH_TRIPLET $SNAPCRAFT_PART_INSTALL/bin/inbe
strip $SNAPCRAFT_PART_INSTALL/bin/inbe
prime:
- bin/inbe
gui-assets:
plugin: dump
source: packaging/linux/appimage
organize:
inbe.desktop: gui/inbe.desktop
inbe.png: gui/inbe.png
inbe.appdata.xml: gui/inbe.metainfo.xml
prime:
- gui/inbe.desktop
- gui/inbe.png
- gui/inbe.metainfo.xml
+2 -2
View File
@@ -52,7 +52,7 @@ generate_transparent() {
local size=$1
local output=$2
magick "$SOURCE_IMAGE" \
-filter lanczos \
-filter point \
-resize "${size}x${size}" \
-strip \
+set date:create +set date:modify +set date:timestamp \
@@ -65,7 +65,7 @@ generate_maskable() {
local output=$2
local logo_size=$((size * 4 / 5))
magick "$SOURCE_IMAGE" \
-filter lanczos \
-filter point \
-resize "${logo_size}x${logo_size}" \
-background none \
-gravity center \
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 1009 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB