Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5729306ae | ||
|
|
d6373dab29 | ||
|
|
91a250a9be | ||
|
|
22d2b0916d | ||
|
|
6a1d83f8f8 | ||
|
|
ced92152e1 | ||
|
|
22c309e5e6 | ||
|
|
b4922b5c35 | ||
|
|
e455f5c40c | ||
|
|
7fbdfc5c49 | ||
|
|
d78af1d5b9 | ||
|
|
9d3844820f | ||
|
|
1d01a8aa32 | ||
|
|
e5af624e3d | ||
|
|
fe2f9209c6 | ||
|
|
189227f3a1 | ||
|
|
58c33a90d6 | ||
|
|
5a38c6953e | ||
|
|
fcd134a8e1 | ||
|
|
158c66d588 | ||
|
|
14d801fb11 | ||
|
|
93941b5c6a | ||
|
|
62641a2b41 | ||
|
|
ee94071509 | ||
|
|
9770dd6b4c | ||
|
|
8c82f35493 | ||
|
|
71d0e24c39 | ||
|
|
0ceebd055e | ||
|
|
6555f85769 | ||
|
|
6b40d00b5b | ||
|
|
54cfd0e5e6 | ||
|
|
50674fefd6 | ||
|
|
f6dbfc373a | ||
|
|
f5397afcd6 | ||
|
|
47ff302a0f | ||
|
|
dbe2e2fc6a | ||
|
|
ab662be647 | ||
|
|
0341d983d1 | ||
|
|
b2a8b34df1 | ||
|
|
3b73ae0cb4 | ||
|
|
ddf4671297 | ||
|
|
83489725ed | ||
|
|
7fb258f5d5 | ||
|
|
fff3469944 | ||
|
|
731abd410b | ||
|
|
8fd4efb642 | ||
|
|
adf8352e92 | ||
|
|
706a8a0797 | ||
|
|
d068a8b8e0 | ||
|
|
024b16e36b | ||
|
|
16e4ec2711 | ||
|
|
7ce19c045f | ||
|
|
a2e5a594cd | ||
|
|
ec53dd02af | ||
|
|
8d92924849 | ||
|
|
407681fada | ||
|
|
6a3d3f3559 | ||
|
|
ab59ab6b83 | ||
|
|
321afdd465 | ||
|
|
c2f7d75258 | ||
|
|
eba69651a9 | ||
|
|
8fe47c8a32 | ||
|
|
81032a9dcc | ||
|
|
2be97ca801 | ||
|
|
324d18fdfb | ||
|
|
6889777cff | ||
|
|
ea78b73c86 | ||
|
|
1e5768f6b4 | ||
|
|
612f431376 | ||
|
|
f13a88b94e | ||
|
|
e7d9843e94 | ||
|
|
ae438d7c14 | ||
|
|
879f058d7a | ||
|
|
f208429e08 | ||
|
|
827780347b | ||
|
|
791ca2eba9 | ||
|
|
7d3d4d588b | ||
|
|
eec36173c8 | ||
|
|
a21bc16bcd | ||
|
|
79a9f92e35 | ||
|
|
fc77fa2aea | ||
|
|
e21f49cf4d | ||
|
|
a9f2cbb464 | ||
|
|
a0b86526a2 | ||
|
|
d39f908ddb | ||
|
|
cb8cbf4ca7 | ||
|
|
077e400e38 | ||
|
|
050eee00ae | ||
|
|
212160a48a | ||
|
|
96b479b99f | ||
|
|
19570e4b1c | ||
|
|
fc8c583eee | ||
|
|
2612192889 | ||
|
|
ce26a3d2a3 | ||
|
|
b8b1bc9989 | ||
|
|
16a5a33091 | ||
|
|
dac27ce0d8 | ||
|
|
44e70de7d1 | ||
|
|
7c3318ff72 | ||
|
|
170ecc851a | ||
|
|
c0a9484d7e | ||
|
|
310a822ea5 | ||
|
|
f3a437a165 | ||
|
|
f2dbd32df4 | ||
|
|
66cb62b4d3 | ||
|
|
e9c1945511 | ||
|
|
dd7d05fa28 | ||
|
|
ace95aa97c | ||
|
|
b2cca9395c | ||
|
|
548217c10d | ||
|
|
d674586fe9 | ||
|
|
7f48edf8f6 | ||
|
|
18bff54ec5 | ||
|
|
764a652e1c | ||
|
|
d41a12503e | ||
|
|
8f728d97bb | ||
|
|
e43973882e | ||
|
|
1e8976c0d4 | ||
|
|
90adc96782 | ||
|
|
4f1950c488 | ||
|
|
bc27c72034 | ||
|
|
3f7054fe40 | ||
|
|
48a3a78049 | ||
|
|
b9ee0287f5 | ||
|
|
dec0a05dd0 | ||
|
|
6ad78bd288 | ||
|
|
bb40a2822d | ||
|
|
f189300079 | ||
|
|
77f880f3ed | ||
|
|
163bbeaa8c | ||
|
|
54a6016976 | ||
|
|
11add452e2 | ||
|
|
aaf7019067 | ||
|
|
2829f237a1 |
No files matched your search
@@ -43,7 +43,7 @@ jobs:
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
|
||||
run: |
|
||||
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/flint-release.keystore
|
||||
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
|
||||
echo "Keystore decoded successfully"
|
||||
|
||||
- name: Copy Assets to Android Project
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
run: |
|
||||
./gradlew assembleRelease \
|
||||
-Pkeystore.password="$KEYSTORE_PASSWORD" \
|
||||
-Pkeystore.path="/home/runner/.android/flint-release.keystore" \
|
||||
-Pkeystore.path="/home/runner/.android/inbe-release.keystore" \
|
||||
--stacktrace
|
||||
|
||||
- name: Rename APK
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
# Changelog
|
||||
## [1.2.6] - 2026-06-12
|
||||
### Fixed
|
||||
- Import now replaces only matching session files from the ZIP and never removes local sessions missing from the import.
|
||||
- Fixed web scaling behavior.
|
||||
|
||||
## [1.2.5] - 2026-06-12
|
||||
### Added
|
||||
- BTC address for donations
|
||||
|
||||
## [1.2.4] - 2026-06-11
|
||||
### Fixed
|
||||
- Android sessions continue correctly when the notification shade causes focus loss with background playback enabled.
|
||||
|
||||
@@ -1,7 +1,44 @@
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
FLINT_DIR ?= vendor/flint
|
||||
FLINT_PROJECT ?= flint.toml
|
||||
ANDROID_ACTIVITY ?= xyz.waozi.inbe.MainActivity
|
||||
include mk/common.mk
|
||||
include mk/native.mk
|
||||
include mk/windows.mk
|
||||
include mk/web.mk
|
||||
include mk/android.mk
|
||||
include mk/dist.mk
|
||||
include mk/clean.mk
|
||||
|
||||
include $(FLINT_DIR)/mk/project.mk
|
||||
FORCE:
|
||||
|
||||
.PHONY: \
|
||||
all \
|
||||
native \
|
||||
run \
|
||||
linux \
|
||||
$(LINUX_ARCHES:%=linux-%) \
|
||||
build-linux-arch \
|
||||
windows \
|
||||
web \
|
||||
clean \
|
||||
clean-linux \
|
||||
clean-windows \
|
||||
clean-web \
|
||||
clean-raylib \
|
||||
dist \
|
||||
dist-linux \
|
||||
dist-windows \
|
||||
install \
|
||||
uninstall \
|
||||
android-init-signing \
|
||||
android-debug \
|
||||
android-release \
|
||||
android-bundle \
|
||||
android-copy-assets \
|
||||
android-copy-apks \
|
||||
android-copy-debug-apks \
|
||||
android-copy-release-apks \
|
||||
android-copy-bundle \
|
||||
android-install \
|
||||
android-install-release \
|
||||
android-clean \
|
||||
FORCE
|
||||
@@ -28,33 +28,26 @@ inbe uses [raylib](https://github.com/raysan5/raylib) and requires a Nix develop
|
||||
nix develop
|
||||
|
||||
# Build for your current platform (Linux x86_64/aarch64)
|
||||
flint build native
|
||||
make
|
||||
|
||||
# Run
|
||||
flint run native
|
||||
./build/linux/inbe-linux-$(uname -m)
|
||||
```
|
||||
|
||||
### Cross-Platform Builds
|
||||
|
||||
```bash
|
||||
# Linux (both architectures)
|
||||
flint build linux
|
||||
make linux
|
||||
|
||||
# Windows (x86_64/i686, OpenGL and software renderer variants, from Linux)
|
||||
flint build windows
|
||||
# Windows (from Linux)
|
||||
make windows
|
||||
|
||||
# Android debug APK
|
||||
flint build android
|
||||
# Android APK
|
||||
make android
|
||||
|
||||
# WebAssembly
|
||||
flint build web
|
||||
|
||||
# Release/package artifacts
|
||||
flint dist linux # Linux tar.gz with all Linux arch binaries
|
||||
flint dist windows # Windows zip with all Windows arch/renderer binaries
|
||||
flint dist android # Signed release APK
|
||||
flint dist itch # Build release artifacts and publish to itch.io
|
||||
flint dist # Full release flow
|
||||
make web
|
||||
```
|
||||
|
||||
### Android Emulator Testing
|
||||
@@ -64,8 +57,7 @@ For automated testing with camera notch (cutout) support:
|
||||
```bash
|
||||
# Enter the development shell and run everything automatically
|
||||
nix develop
|
||||
./scripts/emulator.sh # Creates and launches the test AVD
|
||||
flint run android # Builds, installs, and launches the app
|
||||
./scripts/emulator.sh # Creates AVD, launches emulator, builds & runs app
|
||||
```
|
||||
|
||||
This single script handles:
|
||||
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8" />
|
||||
<head>
|
||||
<title>Inner Breeze - All Builds</title>
|
||||
<link href="/style.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Inner Breeze - All available builds and implementations.">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="web-assets/icons/favicon-32x32.png">
|
||||
<meta name="theme-color" content="#5566aa">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="content">
|
||||
<section>
|
||||
<h1>All Builds</h1>
|
||||
<p><a href="/">← Back to Inner Breeze</a></p>
|
||||
</section>
|
||||
<section>
|
||||
<div class="platform-section">
|
||||
<div class="platform-header">
|
||||
<img src="/web-assets/icons/ray.png" alt="raylib"/>
|
||||
<div>
|
||||
<strong><a href="https://raylib.com">Raylib</a></strong>
|
||||
<p>A C library for video game programming - the primary implementation.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="downloads-grid">
|
||||
<a href="/build/web/index.html" class="download-item">Web (WASM)</a>
|
||||
<a href="/build/linux/inbe-linux.tar.gz" class="download-item">Linux</a>
|
||||
<a href="/build/windows/inbe-windows.zip" class="download-item">Windows</a>
|
||||
<a href="/build/android/inbe-latest.apk" class="download-item">Android APK</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="platform-section">
|
||||
<div class="platform-header">
|
||||
<img src="/web-assets/icons/wasm4.png" alt="wasm4"/>
|
||||
<div>
|
||||
<strong><a href="https://wasm4.org">WASM-4</a></strong>
|
||||
<p>A tiny fantasy console that runs WebAssembly cartridges.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="downloads-grid">
|
||||
<a href="/wasm4/build/index.html" class="download-item">Web</a>
|
||||
<a href="/wasm4/build/cart.wasm" class="download-item">cart.wasm</a>
|
||||
<a href="/wasm4/build/inbe-windows.zip" class="download-item">Windows</a>
|
||||
<a href="/wasm4/build/inbe-linux.tar.gz" class="download-item">Linux</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="platform-section">
|
||||
<div class="platform-header">
|
||||
<img src="/web-assets/icons/uxn.png" alt="uxn"/>
|
||||
<div>
|
||||
<strong><a href="https://100r.co/site/uxn.html">Uxn</a></strong>
|
||||
<p>A small virtual computer; <code>.rom</code> runs in a Uxn emulator.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="downloads-grid">
|
||||
<a href="/uxn/index.html" class="download-item">Web</a>
|
||||
<a href="/uxn/inbe.rom" class="download-item">inbe.rom</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p>© 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -18,8 +18,7 @@ android {
|
||||
keystoreProps.load(new FileInputStream(keystorePropsFile))
|
||||
}
|
||||
|
||||
def getKeystorePath = { -> keystoreProps['keystore.path'] ?: System.getenv("HOME") + "/.android/flint-release.keystore" }
|
||||
def getKeystoreAlias = { -> keystoreProps['keystore.alias'] ?: "inbe-key" }
|
||||
def getKeystorePath = { -> keystoreProps['keystore.path'] ?: System.getenv("HOME") + "/.android/inbe-release.keystore" }
|
||||
|
||||
def releasePassword = project.findProperty('keystore.password') ?: ""
|
||||
|
||||
@@ -27,7 +26,7 @@ android {
|
||||
release {
|
||||
storeFile getKeystorePath() ? file(getKeystorePath()) : null
|
||||
storePassword releasePassword
|
||||
keyAlias getKeystoreAlias()
|
||||
keyAlias "inbe-key"
|
||||
keyPassword releasePassword
|
||||
}
|
||||
}
|
||||
@@ -35,8 +34,8 @@ android {
|
||||
defaultConfig {
|
||||
minSdk 19
|
||||
targetSdk 35
|
||||
versionCode 27
|
||||
versionName "1.2.6"
|
||||
versionCode 25
|
||||
versionName "1.2.4"
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +74,7 @@ gradle.taskGraph.whenReady { taskGraph ->
|
||||
if (taskGraph.hasTask(":app:assembleRelease")
|
||||
&& !project.findProperty('keystore.password')
|
||||
&& !project.hasProperty('fDroidBuild')) {
|
||||
throw new GradleException("Use: flint dist android PASSWORD=your-password")
|
||||
throw new GradleException("Use: make android-release PASSWORD=your-password")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,31 +9,6 @@ set(FLINT_DIR "${REPO_ROOT}/vendor/flint")
|
||||
set(NATIVE_APP_GLUE_DIR "${ANDROID_NDK}/sources/android/native_app_glue")
|
||||
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c")
|
||||
list(REMOVE_ITEM FLINT_SOURCES "${FLINT_DIR}/src/flint_file_dialog.c")
|
||||
file(GLOB INBE_LOCALE_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/locales/*.txt")
|
||||
file(GLOB INBE_THEME_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${FLINT_DIR}/themes/*.ini")
|
||||
file(GLOB INBE_SOUND_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/assets/sounds/*.ogg")
|
||||
set(INBE_EMBEDDED_INPUTS
|
||||
${INBE_LOCALE_ASSETS}
|
||||
${INBE_THEME_ASSETS}
|
||||
assets/angel.jpg
|
||||
assets/begin.jpg
|
||||
assets/fonts/locales.png
|
||||
assets/fonts/locales.dat
|
||||
${INBE_SOUND_ASSETS}
|
||||
)
|
||||
set(INBE_EMBEDDED_DEPS)
|
||||
foreach(asset ${INBE_EMBEDDED_INPUTS})
|
||||
list(APPEND INBE_EMBEDDED_DEPS "${REPO_ROOT}/${asset}")
|
||||
endforeach()
|
||||
set(INBE_EMBEDDED_ASSETS_C "${CMAKE_BINARY_DIR}/inbe_embedded_assets.c")
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${INBE_EMBEDDED_ASSETS_C}"
|
||||
COMMAND sh "${FLINT_DIR}/scripts/embed-assets.sh" "${INBE_EMBEDDED_ASSETS_C}" ${INBE_EMBEDDED_INPUTS}
|
||||
DEPENDS "${FLINT_DIR}/scripts/embed-assets.sh" ${INBE_EMBEDDED_DEPS}
|
||||
WORKING_DIRECTORY "${REPO_ROOT}"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
add_library(raylib STATIC
|
||||
"${RAYLIB_DIR}/rcore.c"
|
||||
@@ -102,7 +77,6 @@ add_library(main SHARED
|
||||
"${SRC_DIR}/tabs/language_tab.c"
|
||||
"${SRC_DIR}/tabs/manual_tab.c"
|
||||
"${SRC_DIR}/tabs/settings_tab.c"
|
||||
"${INBE_EMBEDDED_ASSETS_C}"
|
||||
"${SRC_DIR}/android/android_insets.c"
|
||||
"${SRC_DIR}/android/android_wakelock.c"
|
||||
"${SRC_DIR}/android/android_timer.c"
|
||||
@@ -128,7 +102,6 @@ target_compile_definitions(main PRIVATE
|
||||
MG_ENABLE_POSIX_FS=0
|
||||
SUPPORT_MODULE_RAUDIO=1
|
||||
SUPPORT_FILEFORMAT_OGG=1
|
||||
FLINT_EMBEDDED_ONLY=1
|
||||
)
|
||||
|
||||
target_compile_options(main PRIVATE
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
### Added
|
||||
- BTC address for donations
|
||||
@@ -1,3 +0,0 @@
|
||||
### Fixed
|
||||
- Import now replaces only matching session files from the ZIP and never removes local sessions missing from the import.
|
||||
- Fixed web scaling behavior.
|
||||
@@ -39,17 +39,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
mingw32Pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
crossSystem = { config = "i686-w64-mingw32"; };
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowUnsupportedSystem = true;
|
||||
};
|
||||
};
|
||||
|
||||
mcfgthreads = pkgs.pkgsCross.mingwW64.windows.mcfgthreads;
|
||||
mcfgthreads32 = pkgs.pkgsCross.mingw32.windows.mcfgthreads;
|
||||
|
||||
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||
cmdLineToolsVersion = "11.0";
|
||||
@@ -85,9 +75,6 @@
|
||||
mingwPkgs.buildPackages.gcc
|
||||
mingwPkgs.windows.mingw_w64
|
||||
mcfgthreads
|
||||
mingw32Pkgs.buildPackages.gcc
|
||||
mingw32Pkgs.windows.mingw_w64
|
||||
mcfgthreads32
|
||||
];
|
||||
|
||||
windowsProfile = pkgs.lib.optionalString windowsCrossEnabled ''
|
||||
@@ -98,15 +85,7 @@
|
||||
export WIN_WINDRES="x86_64-w64-mingw32-windres"
|
||||
export WIN_STRIP="x86_64-w64-mingw32-strip"
|
||||
|
||||
export WIN32_CC="i686-w64-mingw32-gcc"
|
||||
export WIN32_CXX="i686-w64-mingw32-g++"
|
||||
export WIN32_AR="i686-w64-mingw32-ar"
|
||||
export WIN32_RANLIB="i686-w64-mingw32-ranlib"
|
||||
export WIN32_WINDRES="i686-w64-mingw32-windres"
|
||||
export WIN32_STRIP="i686-w64-mingw32-strip"
|
||||
|
||||
export MCFGTHREADS="${mcfgthreads}"
|
||||
export WIN32_MCFGTHREADS="${mcfgthreads32}"
|
||||
export CPATH="$MCFGTHREADS/include:$CPATH"
|
||||
export LIBRARY_PATH="$MCFGTHREADS/lib:$LIBRARY_PATH"
|
||||
export LDFLAGS="-L$MCFGTHREADS/lib $LDFLAGS"
|
||||
|
||||
-77
@@ -1,77 +0,0 @@
|
||||
[app]
|
||||
name = "inbe"
|
||||
title = "Inner Breeze"
|
||||
id = "xyz.waozi.inbe"
|
||||
version_header = "src/version.h"
|
||||
|
||||
[paths]
|
||||
raylib = "vendor/raylib/src"
|
||||
flint = "vendor/flint"
|
||||
core_library = "libinbe"
|
||||
android_project = "droid"
|
||||
|
||||
[sources]
|
||||
app = [
|
||||
"src/main.c",
|
||||
"src/app.c",
|
||||
"src/app_session.c",
|
||||
"src/locale.c",
|
||||
"src/theme_meta.c",
|
||||
"src/theme.c",
|
||||
"src/data.c",
|
||||
"src/miniz.c",
|
||||
"src/tabs/history_tab.c",
|
||||
"src/tabs/language_tab.c",
|
||||
"src/tabs/manual_tab.c",
|
||||
"src/tabs/settings_tab.c"
|
||||
]
|
||||
core = ["libinbe/inbe.c"]
|
||||
include_dirs = ["src", "src/android", "libinbe"]
|
||||
|
||||
[assets]
|
||||
locales = "locales/*.txt"
|
||||
themes = "vendor/flint/themes/*.ini"
|
||||
images = ["assets/angel.jpg", "assets/begin.jpg"]
|
||||
sounds = [
|
||||
"assets/sounds/breath-in.ogg",
|
||||
"assets/sounds/breath-out.ogg",
|
||||
"assets/sounds/bell.ogg"
|
||||
]
|
||||
generated_fonts = ["assets/fonts/locales.png", "assets/fonts/locales.dat"]
|
||||
font_tool = "vendor/otfchop/otfchop"
|
||||
font_source = "vendor/otfchop/unifont-17.0.04.otf"
|
||||
|
||||
[raylib]
|
||||
modules = ["core", "shapes", "textures", "text", "audio"]
|
||||
audio = true
|
||||
models = false
|
||||
graphics = "gles2"
|
||||
formats = ["jpg", "png", "ogg"]
|
||||
|
||||
[platform.linux]
|
||||
arches = ["x86_64", "aarch64"]
|
||||
backend = "sdl"
|
||||
|
||||
[platform.windows]
|
||||
arches = ["x86_64", "i686"]
|
||||
renderers = ["opengl", "rlsw"]
|
||||
|
||||
[platform.web]
|
||||
shell = "src/web_shell.html"
|
||||
public = ["manifest.json", "web-assets"]
|
||||
|
||||
[platform.android]
|
||||
min_sdk = 19
|
||||
target_sdk = 35
|
||||
compile_sdk = 35
|
||||
abis = ["arm64-v8a", "armeabi-v7a", "x86", "x86_64"]
|
||||
activity = "xyz.waozi.inbe.MainActivity"
|
||||
sources = [
|
||||
"src/android/android_import.c",
|
||||
"src/android/android_share.c",
|
||||
"src/android/android_insets.c",
|
||||
"src/android/android_wakelock.c",
|
||||
"src/android/android_timer.c"
|
||||
]
|
||||
keystore = "flint-release.keystore"
|
||||
key_alias = "inbe-key"
|
||||
@@ -0,0 +1,5 @@
|
||||
# Inbe app configuration
|
||||
name "inbe"
|
||||
title "Inner Breeze"
|
||||
width 320
|
||||
height 560
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8" />
|
||||
<head>
|
||||
<title>Inner Breeze - Guided Breathing Meditation</title>
|
||||
<link href="/style.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Inner Breeze - A free, open-source guided breathing meditation app based on the Wim Hof method. Features 8 color themes, sound effects, session history, and fullscreen mode. Available for web, Android, Windows, and Linux.">
|
||||
<link rel="canonical" href="https://inbe.waozi.xyz/">
|
||||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://inbe.waozi.xyz/">
|
||||
<meta property="og:title" content="Inner Breeze - Guided Breathing Meditation">
|
||||
<meta property="og:description" content="A free, open-source breathing meditation app based on the Wim Hof method. Features 8 color themes, sound effects, and session history.">
|
||||
<meta property="og:image" content="https://inbe.waozi.xyz/og.jpg">
|
||||
<meta property="og:site_name" content="Inner Breeze">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:url" content="https://inbe.waozi.xyz/">
|
||||
<meta name="twitter:title" content="Inner Breeze - Guided Breathing Meditation">
|
||||
<meta name="twitter:description" content="A free, open-source breathing meditation app based on the Wim Hof method.">
|
||||
<meta name="twitter:image" content="https://inbe.waozi.xyz/og.jpg">
|
||||
<meta name="twitter:site" content="@waozixyz">
|
||||
<meta name="twitter:creator" content="@waozixyz">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="web-assets/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="web-assets/icons/icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="512x512" href="web-assets/icons/icon-512x512.png">
|
||||
<link rel="apple-touch-icon" href="web-assets/icons/apple-touch-icon.png">
|
||||
<meta name="theme-color" content="#5566aa">
|
||||
|
||||
<!-- JSON-LD Structured Data -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SoftwareApplication",
|
||||
"name": "Inner Breeze",
|
||||
"description": "A free, open-source guided breathing meditation app based on the Wim Hof method",
|
||||
"applicationCategory": "HealthApplication",
|
||||
"operatingSystem": "Android, Windows, Linux, Web Browser",
|
||||
"offers": {
|
||||
"@type": "Offer",
|
||||
"price": "0",
|
||||
"priceCurrency": "USD"
|
||||
},
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.8",
|
||||
"ratingCount": "150"
|
||||
},
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Waozi",
|
||||
"url": "https://waozi.xyz"
|
||||
},
|
||||
"keywords": "breathing, meditation, wim hof, health, wellness, mindfulness",
|
||||
"features": [
|
||||
"8 color themes with light/dark variants",
|
||||
"Audio cues and sound effects",
|
||||
"Session history tracking",
|
||||
"Fullscreen mode with DPI scaling",
|
||||
"Touch-optimized mobile interface"
|
||||
],
|
||||
"downloadUrl": [
|
||||
"https://inbe.waozi.xyz/build/android/inbe-latest.apk",
|
||||
"https://inbe.waozi.xyz/build/windows/inbe-windows.zip",
|
||||
"https://inbe.waozi.xyz/build/linux/inbe-linux.tar.gz"
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="content">
|
||||
<main id="main-content">
|
||||
<section class="hero" aria-label="App introduction and download options">
|
||||
<img class="tk-img" src="/web-assets/icons/inbe.png" width="128px" alt="Inner Breeze app logo - a calming blue wind spiral icon"/>
|
||||
|
||||
<h1>Inner Breeze</h1>
|
||||
<p>guided breathing meditation based on the Wim Hof method</p>
|
||||
<p class="version">1.2.4</p>
|
||||
|
||||
<!-- Direct Downloads -->
|
||||
<nav aria-label="Platform downloads" class="platform-buttons">
|
||||
<a href="/build/web/index.html" class="platform-btn web">
|
||||
<img src="/web-assets/icons/wasm.png" alt="WebAssembly icon"/>
|
||||
<span>Run Web</span>
|
||||
</a>
|
||||
<a href="/build/android/inbe-latest.apk" class="platform-btn android">
|
||||
<img src="/web-assets/icons/droid.png" alt="Android icon"/>
|
||||
<span>Android</span>
|
||||
|
||||
</a>
|
||||
<a href="/build/windows/inbe-windows.zip" class="platform-btn windows">
|
||||
<img src="/web-assets/icons/win.png" alt="Windows icon"/>
|
||||
<span>Windows</span>
|
||||
|
||||
</a>
|
||||
<a href="/build/linux/inbe-linux.tar.gz" class="platform-btn linux">
|
||||
<img src="/web-assets/icons/tux.png" alt="Linux icon"/>
|
||||
<span>Linux</span>
|
||||
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<!-- App Stores -->
|
||||
<nav aria-label="App store downloads" class="platform-buttons">
|
||||
<a href="https://play.google.com/store/apps/details?id=xyz.waozi.inbe" class="platform-btn android">
|
||||
<img src="/web-assets/icons/playstore.png" alt="Play Store icon"/>
|
||||
<span>Play Store</span>
|
||||
</a>
|
||||
<a href="https://f-droid.org/packages/xyz.waozi.inbe/" class="platform-btn android">
|
||||
<img src="/web-assets/icons/fdroid.png" alt="F-Droid icon"/>
|
||||
<span>F-Droid</span>
|
||||
</a>
|
||||
<a href="https://waozi.itch.io/inbe" class="platform-btn web">
|
||||
<img src="/web-assets/icons/itch.png" alt="itch.io icon"/>
|
||||
<span>itch.io</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<p style="text-align:center; margin-top:16px; font-size:14px;"><a href="/builds.html">Other builds (WASM-4, Uxn) →</a></p>
|
||||
</section>
|
||||
|
||||
<!-- Features Section - Clean simple styling -->
|
||||
<section class="features-section">
|
||||
<h2>Features</h2>
|
||||
<div class="features-grid">
|
||||
<div class="feature-item">
|
||||
<h3>8 Color Themes</h3>
|
||||
<p>Forest, Ocean, Sky, Sunset, and Lavender — each with light and dark variants</p>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<h3>Audio Cues</h3>
|
||||
<p>Breath in/out sounds and completion bell for guided sessions</p>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<h3>Session History</h3>
|
||||
<p>Track your breathing sessions with local storage</p>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<h3>Fullscreen Mode</h3>
|
||||
<p>Immersive experience with proper DPI scaling</p>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<h3>Touch Optimized</h3>
|
||||
<p>Designed for mobile devices with responsive controls</p>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<h3>Open Source</h3>
|
||||
<p>Free and open-source under MIT license</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="migration-section">
|
||||
<h2>Migrating from inbe-legacy?</h2>
|
||||
<p>Use the web converter to turn an inbe-legacy JSON export into the ZIP format used by current Inner Breeze imports.</p>
|
||||
<p><a href="/legacy-converter.html">Open legacy data converter</a></p>
|
||||
</section>
|
||||
|
||||
<!-- About Section -->
|
||||
<section class="about-section">
|
||||
<h2>About the Wim Hof Method</h2>
|
||||
<p>The Wim Hof Method is a breathing technique that combines controlled hyperventilation and breath retention. Practitioners report benefits including:</p>
|
||||
<ul class="benefits-list">
|
||||
<li>Reduced stress and anxiety</li>
|
||||
<li>Improved focus and mental clarity</li>
|
||||
<li>Better sleep quality</li>
|
||||
<li>Enhanced cold tolerance</li>
|
||||
<li>Increased energy levels</li>
|
||||
</ul>
|
||||
<p class="safety-note"><em>Note: Always practice breathing exercises in a safe environment. Never practice while driving, swimming, or in situations where loss of consciousness could be dangerous.</em></p>
|
||||
</section>
|
||||
|
||||
<!-- Source & Donations -->
|
||||
<section class="info-section">
|
||||
<nav aria-label="Source code" class="platform-buttons">
|
||||
<a href="https://github.com/waozixyz/inbe" target="_blank" rel="noopener" class="platform-btn web">
|
||||
<img src="/web-assets/icons/github.png" alt="GitHub icon"/>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<details class="dropdown">
|
||||
<summary>Privacy & Donations</summary>
|
||||
<div class="dropdown-content">
|
||||
<p><strong>Privacy:</strong> Inner Breeze respects your privacy. The app stores session history locally on your device and does not collect, transmit, or sell any personal data. No analytics, no tracking, no accounts required.</p>
|
||||
<p><strong>Free & Open Source:</strong> This app is completely free with no ads, in-app purchases, or premium features. Development is supported by voluntary donations.</p>
|
||||
<nav aria-label="Donation options" class="dropdown-links">
|
||||
<a href="https://trocador.app/en/anonpay/?ticker_to=xmr&network_to=Mainnet&address=86CbC3d4a2GhT9auh6X99JhmhTMFKVVk8Q9cLrKTHkBu8LLkoNWgkBeAT3YZrvDM6NczYe8brUJNsTiFmwpWDZYnFG5kzSH&donation=True&simple_mode=True&amount=0.1&name=Inner+Breeze&[email protected]&ticker_from=xmr&network_from=Mainnet&buttonbgcolor=445588&textcolor=ffffff&bgcolor=eaeaffff" target="_blank" rel="noopener">Donate via Crypto</a>
|
||||
</nav>
|
||||
</div>
|
||||
</details>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
<footer>
|
||||
<p>© 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,287 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8" />
|
||||
<head>
|
||||
<title>Inner Breeze Legacy Data Converter</title>
|
||||
<link href="/style.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Convert inbe-legacy JSON exports into the current Inner Breeze import ZIP format.">
|
||||
<link rel="canonical" href="https://inbe.waozi.xyz/legacy-converter.html">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="content">
|
||||
<main id="main-content">
|
||||
<section class="tool-section">
|
||||
<h1>Legacy Data Converter</h1>
|
||||
<p>Coming from inbe-legacy? Convert the old JSON export into the ZIP file used by the current Inner Breeze import tool.</p>
|
||||
<p class="safety-note"><em>This runs entirely in your browser. Your file is not uploaded.</em></p>
|
||||
|
||||
<div class="converter-panel">
|
||||
<label for="legacy-file">inbe-legacy JSON export</label>
|
||||
<input id="legacy-file" type="file" accept=".json,application/json">
|
||||
<button id="convert-button" type="button">Convert to Inbe ZIP</button>
|
||||
<p id="converter-status" class="converter-status" role="status">Choose an inbe-legacy JSON export.</p>
|
||||
</div>
|
||||
|
||||
<p><a href="/">Back to downloads</a></p>
|
||||
</section>
|
||||
</main>
|
||||
<footer>
|
||||
<p>© 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
var fileInput = document.getElementById("legacy-file");
|
||||
var convertButton = document.getElementById("convert-button");
|
||||
var statusEl = document.getElementById("converter-status");
|
||||
|
||||
function setStatus(message, isError) {
|
||||
statusEl.textContent = message;
|
||||
statusEl.className = isError ? "converter-status error" : "converter-status";
|
||||
}
|
||||
|
||||
function pad(value, width) {
|
||||
var text = String(value);
|
||||
while(text.length < width) text = "0" + text;
|
||||
return text;
|
||||
}
|
||||
|
||||
function dosDateTime(date) {
|
||||
var year = date.getFullYear();
|
||||
if(year < 1980) year = 1980;
|
||||
return {
|
||||
time: (date.getHours() << 11) | (date.getMinutes() << 5) | Math.floor(date.getSeconds() / 2),
|
||||
date: ((year - 1980) << 9) | ((date.getMonth() + 1) << 5) | date.getDate()
|
||||
};
|
||||
}
|
||||
|
||||
var crcTable = null;
|
||||
function makeCrcTable() {
|
||||
var table = [];
|
||||
for(var n = 0; n < 256; n++) {
|
||||
var c = n;
|
||||
for(var k = 0; k < 8; k++) {
|
||||
c = (c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1);
|
||||
}
|
||||
table[n] = c >>> 0;
|
||||
}
|
||||
return table;
|
||||
}
|
||||
|
||||
function crc32(bytes) {
|
||||
if(crcTable === null) crcTable = makeCrcTable();
|
||||
var crc = 0 ^ -1;
|
||||
for(var i = 0; i < bytes.length; i++) {
|
||||
crc = (crc >>> 8) ^ crcTable[(crc ^ bytes[i]) & 0xff];
|
||||
}
|
||||
return (crc ^ -1) >>> 0;
|
||||
}
|
||||
|
||||
function writeU16(out, value) {
|
||||
out.push(value & 255, (value >>> 8) & 255);
|
||||
}
|
||||
|
||||
function writeU32(out, value) {
|
||||
out.push(value & 255, (value >>> 8) & 255, (value >>> 16) & 255, (value >>> 24) & 255);
|
||||
}
|
||||
|
||||
function appendBytes(out, bytes) {
|
||||
for(var i = 0; i < bytes.length; i++) out.push(bytes[i]);
|
||||
}
|
||||
|
||||
function makeZip(files) {
|
||||
var encoder = new TextEncoder();
|
||||
var out = [];
|
||||
var central = [];
|
||||
var now = dosDateTime(new Date());
|
||||
|
||||
files.forEach(function(file) {
|
||||
var nameBytes = encoder.encode(file.name);
|
||||
var dataBytes = encoder.encode(file.content);
|
||||
var crc = crc32(dataBytes);
|
||||
var offset = out.length;
|
||||
|
||||
writeU32(out, 0x04034b50);
|
||||
writeU16(out, 20);
|
||||
writeU16(out, 0);
|
||||
writeU16(out, 0);
|
||||
writeU16(out, now.time);
|
||||
writeU16(out, now.date);
|
||||
writeU32(out, crc);
|
||||
writeU32(out, dataBytes.length);
|
||||
writeU32(out, dataBytes.length);
|
||||
writeU16(out, nameBytes.length);
|
||||
writeU16(out, 0);
|
||||
appendBytes(out, nameBytes);
|
||||
appendBytes(out, dataBytes);
|
||||
|
||||
writeU32(central, 0x02014b50);
|
||||
writeU16(central, 20);
|
||||
writeU16(central, 20);
|
||||
writeU16(central, 0);
|
||||
writeU16(central, 0);
|
||||
writeU16(central, now.time);
|
||||
writeU16(central, now.date);
|
||||
writeU32(central, crc);
|
||||
writeU32(central, dataBytes.length);
|
||||
writeU32(central, dataBytes.length);
|
||||
writeU16(central, nameBytes.length);
|
||||
writeU16(central, 0);
|
||||
writeU16(central, 0);
|
||||
writeU16(central, 0);
|
||||
writeU16(central, 0);
|
||||
writeU32(central, 0);
|
||||
writeU32(central, offset);
|
||||
appendBytes(central, nameBytes);
|
||||
});
|
||||
|
||||
var centralOffset = out.length;
|
||||
appendBytes(out, central);
|
||||
writeU32(out, 0x06054b50);
|
||||
writeU16(out, 0);
|
||||
writeU16(out, 0);
|
||||
writeU16(out, files.length);
|
||||
writeU16(out, files.length);
|
||||
writeU32(out, central.length);
|
||||
writeU32(out, centralOffset);
|
||||
writeU16(out, 0);
|
||||
|
||||
return new Blob([new Uint8Array(out)], {type: "application/zip"});
|
||||
}
|
||||
|
||||
function sessionDate(session) {
|
||||
var id = session && session.id;
|
||||
var dateTime = session && session.dateTime;
|
||||
var numeric = Number(id);
|
||||
var date;
|
||||
|
||||
if(Number.isFinite(numeric) && numeric > 0) {
|
||||
date = new Date(numeric);
|
||||
} else if(typeof id === "string") {
|
||||
date = new Date(id);
|
||||
}
|
||||
|
||||
if((!date || Number.isNaN(date.getTime())) && typeof dateTime === "string") {
|
||||
date = new Date(dateTime);
|
||||
}
|
||||
|
||||
if(!date || Number.isNaN(date.getTime())) {
|
||||
return null;
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
function roundSeconds(value) {
|
||||
var number = Number(value);
|
||||
if(!Number.isFinite(number) || number <= 0) return 0;
|
||||
if(number > 999) number = Math.round(number / 1000);
|
||||
else number = Math.round(number);
|
||||
if(number < 1 || number > 999) return 0;
|
||||
return number;
|
||||
}
|
||||
|
||||
function convertLegacy(data) {
|
||||
var sessions = Array.isArray(data) ? data : data.sessions;
|
||||
var files = [];
|
||||
var usedPaths = {};
|
||||
|
||||
if(!Array.isArray(sessions)) {
|
||||
throw new Error("No sessions array found in the legacy export.");
|
||||
}
|
||||
|
||||
sessions.forEach(function(session) {
|
||||
var date = sessionDate(session);
|
||||
var rounds = session && session.rounds;
|
||||
var seconds = [];
|
||||
var path;
|
||||
|
||||
if(!date || !rounds || typeof rounds !== "object") return;
|
||||
|
||||
Object.keys(rounds).sort(function(a, b) {
|
||||
return Number(a) - Number(b);
|
||||
}).forEach(function(key) {
|
||||
var value = roundSeconds(rounds[key]);
|
||||
if(value > 0) seconds.push(value);
|
||||
});
|
||||
|
||||
if(seconds.length === 0) return;
|
||||
|
||||
path = "lotus-data/sessions/" +
|
||||
pad(date.getFullYear(), 4) + "/" +
|
||||
pad(date.getMonth() + 1, 2) + "/" +
|
||||
pad(date.getDate(), 2) + "/inbe-" +
|
||||
pad(date.getHours(), 2) +
|
||||
pad(date.getMinutes(), 2) +
|
||||
pad(date.getSeconds(), 2);
|
||||
|
||||
while(usedPaths[path]) {
|
||||
date = new Date(date.getTime() + 1000);
|
||||
path = "lotus-data/sessions/" +
|
||||
pad(date.getFullYear(), 4) + "/" +
|
||||
pad(date.getMonth() + 1, 2) + "/" +
|
||||
pad(date.getDate(), 2) + "/inbe-" +
|
||||
pad(date.getHours(), 2) +
|
||||
pad(date.getMinutes(), 2) +
|
||||
pad(date.getSeconds(), 2);
|
||||
}
|
||||
usedPaths[path] = true;
|
||||
|
||||
files.push({
|
||||
name: path,
|
||||
content: seconds.join("\n") + "\n"
|
||||
});
|
||||
});
|
||||
|
||||
if(files.length === 0) {
|
||||
throw new Error("No valid legacy sessions were found.");
|
||||
}
|
||||
|
||||
files.unshift({
|
||||
name: "lotus-data/metadata.txt",
|
||||
content: "Inner Breeze Data Export\nVersion: legacy-converter\nDate: " + new Date().toISOString() + "\nSessions: " + files.length + "\n"
|
||||
});
|
||||
|
||||
return {
|
||||
count: files.length - 1,
|
||||
blob: makeZip(files)
|
||||
};
|
||||
}
|
||||
|
||||
function downloadBlob(blob, filename) {
|
||||
var url = URL.createObjectURL(blob);
|
||||
var link = document.createElement("a");
|
||||
link.href = url;
|
||||
link.download = filename;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
setTimeout(function() {
|
||||
URL.revokeObjectURL(url);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
convertButton.addEventListener("click", function() {
|
||||
var file = fileInput.files && fileInput.files[0];
|
||||
if(!file) {
|
||||
setStatus("Choose a legacy JSON export first.", true);
|
||||
return;
|
||||
}
|
||||
|
||||
file.text().then(function(text) {
|
||||
var data = JSON.parse(text);
|
||||
var result = convertLegacy(data);
|
||||
downloadBlob(result.blob, "inbe-legacy-converted.zip");
|
||||
setStatus("Converted " + result.count + " sessions. Import the downloaded ZIP in Inner Breeze.", false);
|
||||
}).catch(function(error) {
|
||||
setStatus(error.message || "Conversion failed.", true);
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "Inner Breeze",
|
||||
"short_name": "Inner Breeze",
|
||||
"description": "Guided breathing meditation based on the Wim Hof method.",
|
||||
"start_url": "/build/web/index.html",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#1a1a2e",
|
||||
"theme_color": "#779999",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/web-assets/icons/icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/web-assets/icons/icon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
android-init-signing:
|
||||
@echo "Generating release keystore..."
|
||||
@mkdir -p ~/.android
|
||||
keytool -genkeypair -v -storetype PKCS12 \
|
||||
-keystore ~/.android/inbe-release.keystore \
|
||||
-alias inbe-key \
|
||||
-keyalg RSA \
|
||||
-keysize 4096 \
|
||||
-validity 10000
|
||||
@echo ""
|
||||
@echo "Keystore created at ~/.android/inbe-release.keystore"
|
||||
@echo ""
|
||||
@echo "Add this line to $(ANDROID_DIR)/local.properties:"
|
||||
@echo " keystore.path=$$HOME/.android/inbe-release.keystore"
|
||||
|
||||
android-copy-assets:
|
||||
$(MAKE) $(FONT_FILES)
|
||||
rm -rf $(ANDROID_DIR)/app/src/main/assets
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets
|
||||
cp $(CONFIG_FILES) $(ANDROID_DIR)/app/src/main/assets/
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets/locales
|
||||
cp $(LOCALE_FILES) $(ANDROID_DIR)/app/src/main/assets/locales/
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets/themes
|
||||
cp $(THEME_FILES) $(ANDROID_DIR)/app/src/main/assets/themes/
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets
|
||||
cp $(IMAGE_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets/fonts
|
||||
cp $(FONT_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/fonts/
|
||||
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets/sounds
|
||||
cp $(SOUND_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/sounds/
|
||||
|
||||
android-debug:
|
||||
$(MAKE) android-copy-assets
|
||||
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleDebug
|
||||
$(MAKE) android-copy-debug-apks
|
||||
|
||||
android-release:
|
||||
$(MAKE) android-copy-assets
|
||||
@if [ -n "$(PASSWORD)" ]; then \
|
||||
PASSWORD_VALUE="$(PASSWORD)"; \
|
||||
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
|
||||
$(MAKE) android-copy-release-apks; \
|
||||
elif [ -t 0 ]; then \
|
||||
printf "Keystore password: "; \
|
||||
stty -echo; \
|
||||
read PASSWORD_VALUE; \
|
||||
stty echo; \
|
||||
printf "\n"; \
|
||||
if [ -n "$$PASSWORD_VALUE" ]; then \
|
||||
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
|
||||
$(MAKE) android-copy-release-apks; \
|
||||
else \
|
||||
echo "Keystore password is required"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
else \
|
||||
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
android-bundle:
|
||||
$(MAKE) android-copy-assets
|
||||
@if [ -n "$(PASSWORD)" ]; then \
|
||||
PASSWORD_VALUE="$(PASSWORD)"; \
|
||||
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) bundleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
|
||||
$(MAKE) android-copy-bundle; \
|
||||
elif [ -t 0 ]; then \
|
||||
printf "Keystore password: "; \
|
||||
stty -echo; \
|
||||
read PASSWORD_VALUE; \
|
||||
stty echo; \
|
||||
printf "\n"; \
|
||||
if [ -n "$$PASSWORD_VALUE" ]; then \
|
||||
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) bundleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
|
||||
$(MAKE) android-copy-bundle; \
|
||||
else \
|
||||
echo "Keystore password is required"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
else \
|
||||
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
android-copy-bundle: | $(ANDROID_BUILD_DIR)
|
||||
@VERSION=$$(grep -m1 '^## \[' CHANGELOG.md | sed 's/^## \[\([^]]*\)\].*/\1/'); \
|
||||
BUNDLE=$$(find $(ANDROID_DIR)/app/build/outputs/bundle/release -name "*.aab" 2>/dev/null | head -1); \
|
||||
if [ -n "$$BUNDLE" ] && [ -f "$$BUNDLE" ]; then \
|
||||
VERSIONED_BUNDLE="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.aab"; \
|
||||
echo "Copying and renaming $$BUNDLE to $$VERSIONED_BUNDLE"; \
|
||||
cp "$$BUNDLE" "$$VERSIONED_BUNDLE"; \
|
||||
ln -sf "$$(basename "$$VERSIONED_BUNDLE")" "$(ANDROID_BUILD_DIR)/inbe-latest.aab"; \
|
||||
echo "Created symlink: inbe-latest.aab -> $$(basename "$$VERSIONED_BUNDLE")"; \
|
||||
else \
|
||||
echo "Bundle not found in $(ANDROID_DIR)/app/build/outputs/bundle/release/"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
android-copy-apks: android-copy-debug-apks android-copy-release-apks
|
||||
|
||||
android-copy-debug-apks: | $(ANDROID_BUILD_DIR)
|
||||
@for apk in $(ANDROID_DIR)/app/build/outputs/apk/debug/*.apk; do \
|
||||
if [ -f "$$apk" ]; then \
|
||||
echo "Copying $$apk"; \
|
||||
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
android-copy-release-apks: | $(ANDROID_BUILD_DIR)
|
||||
@VERSION=$$(grep INBE_VERSION_STRING src/version.h | grep -o '"[^"]*"' | tr -d '"'); \
|
||||
UNIVERSAL_APK=$$(find $(ANDROID_DIR)/app/build/outputs/apk/release -name "app-universal-release.apk" 2>/dev/null); \
|
||||
if [ -n "$$UNIVERSAL_APK" ] && [ -f "$$UNIVERSAL_APK" ]; then \
|
||||
VERSIONED_APK="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.apk"; \
|
||||
echo "Copying and renaming $$UNIVERSAL_APK to $$VERSIONED_APK"; \
|
||||
cp "$$UNIVERSAL_APK" "$$VERSIONED_APK"; \
|
||||
ln -sf "$$(basename "$$VERSIONED_APK")" "$(ANDROID_BUILD_DIR)/inbe-latest.apk"; \
|
||||
echo "Created symlink: inbe-latest.apk -> $$(basename "$$VERSIONED_APK")"; \
|
||||
else \
|
||||
for apk in $(ANDROID_DIR)/app/build/outputs/apk/release/*.apk; do \
|
||||
if [ -f "$$apk" ]; then \
|
||||
echo "Copying $$apk"; \
|
||||
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
|
||||
fi; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
android-install: android-debug
|
||||
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
|
||||
echo "Device ABI: $$ABI"; \
|
||||
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-$${ABI}-debug.apk; \
|
||||
if [ ! -f "$$APK" ]; then \
|
||||
echo "APK not found for $$ABI, trying universal..."; \
|
||||
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-debug.apk; \
|
||||
fi; \
|
||||
echo "Installing: $$APK"; \
|
||||
adb install -r "$$APK"
|
||||
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
|
||||
|
||||
android-install-release: android-release
|
||||
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
|
||||
echo "Device ABI: $$ABI"; \
|
||||
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-$${ABI}-release.apk; \
|
||||
if [ ! -f "$$APK" ]; then \
|
||||
echo "APK not found for $$ABI, trying universal..."; \
|
||||
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-release.apk; \
|
||||
fi; \
|
||||
echo "Installing: $$APK"; \
|
||||
adb install -r "$$APK"
|
||||
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
|
||||
|
||||
android-clean:
|
||||
$(GRADLE) -p $(ANDROID_DIR) clean
|
||||
rm -rf $(ANDROID_BUILD_DIR)
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
clean:
|
||||
rm -rf build
|
||||
$(MAKE) -C $(INBE_DIR) clean
|
||||
|
||||
clean-linux:
|
||||
rm -rf $(LINUX_BUILD_DIR)
|
||||
$(MAKE) -C $(INBE_DIR) clean
|
||||
|
||||
clean-windows:
|
||||
rm -rf $(WINDOWS_BUILD_DIR)
|
||||
$(MAKE) -C $(INBE_DIR) clean
|
||||
|
||||
clean-web:
|
||||
rm -rf $(WEB_BUILD_DIR)
|
||||
|
||||
clean-raylib:
|
||||
$(MAKE) -C $(RAYLIB_DIR) clean
|
||||
rm -rf vendor/raylib/build
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
CC = gcc
|
||||
WINDRES = windres
|
||||
|
||||
SRC = src/main.c src/app.c src/app_session.c src/locale.c src/theme_meta.c src/theme.c src/data.c src/miniz.c src/android/android_share.c src/tabs/history_tab.c src/tabs/language_tab.c src/tabs/manual_tab.c src/tabs/settings_tab.c
|
||||
INBE_DIR = libinbe
|
||||
INBE_A = $(INBE_DIR)/libinbe.a
|
||||
|
||||
RAYLIB_DIR = vendor/raylib/src
|
||||
RAYLIB_BUILD_DIR = vendor/raylib/build/sdl
|
||||
RAYLIB_A = $(RAYLIB_BUILD_DIR)/libraylib.a
|
||||
RAYLIB_SOURCES = $(wildcard $(RAYLIB_DIR)/*.c) $(wildcard $(RAYLIB_DIR)/*.h)
|
||||
|
||||
FLINT_DIR = vendor/flint
|
||||
FLINT_SRCS = $(wildcard $(FLINT_DIR)/src/*.c)
|
||||
FLINT_INCLUDE = -I$(FLINT_DIR)/include
|
||||
|
||||
ANDROID_DIR = droid
|
||||
GRADLE = gradle
|
||||
ANDROID_APP_ID = xyz.waozi.inbe
|
||||
ANDROID_ACTIVITY = android.app.NativeActivity
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
UNAME_M := $(shell uname -m)
|
||||
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
PLATFORM = linux
|
||||
else ifeq ($(UNAME_S),Darwin)
|
||||
PLATFORM = macos
|
||||
else
|
||||
PLATFORM = unknown
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME_M),x86_64)
|
||||
ARCH = x86_64
|
||||
else ifeq ($(UNAME_M),aarch64)
|
||||
ARCH = aarch64
|
||||
else ifeq ($(UNAME_M),armv7l)
|
||||
ARCH = arm
|
||||
else
|
||||
ARCH = $(UNAME_M)
|
||||
endif
|
||||
|
||||
BUILD_DIR = build
|
||||
LINUX_BUILD_DIR = $(BUILD_DIR)/linux
|
||||
WINDOWS_BUILD_DIR = $(BUILD_DIR)/windows
|
||||
ANDROID_BUILD_DIR = $(BUILD_DIR)/android
|
||||
WEB_BUILD_DIR = $(BUILD_DIR)/web
|
||||
LINUX_ARCHES = x86_64 aarch64
|
||||
ANDROID_DIST ?= release
|
||||
|
||||
INSTALL_DIR = $(HOME)/.local/share/inbe
|
||||
BIN_DIR = $(HOME)/bin
|
||||
TARBALL = $(LINUX_BUILD_DIR)/inbe-linux.tar.gz
|
||||
|
||||
CONFIG_FILES = inbe.ini theme.ini
|
||||
LOCALE_FILES = $(wildcard locales/*.txt)
|
||||
THEME_FILES = $(wildcard $(FLINT_DIR)/themes/*.ini)
|
||||
IMAGE_FILES = assets/angel.jpg assets/begin.jpg
|
||||
SOUND_FILES = assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg
|
||||
FONT_OUTPUTS = assets/fonts/locales.png assets/fonts/locales.dat
|
||||
FONT_FILES = $(FONT_OUTPUTS)
|
||||
FONT_TOOL = vendor/otfchop/otfchop
|
||||
FONT_SOURCE = vendor/otfchop/unifont-17.0.04.otf
|
||||
BUILD_MAKEFILES = Makefile mk/common.mk mk/native.mk mk/windows.mk mk/web.mk mk/android.mk mk/dist.mk mk/clean.mk
|
||||
|
||||
assets/fonts:
|
||||
mkdir -p $@
|
||||
|
||||
$(FONT_OUTPUTS): $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
|
||||
$(FONT_TOOL) $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
|
||||
|
||||
$(FONT_TOOL): vendor/otfchop/otfchop.c vendor/otfchop/stb_truetype.h vendor/otfchop/stb_image_write.h
|
||||
$(MAKE) -C vendor/otfchop otfchop
|
||||
|
||||
INBE_RAYLIB_CONFIG = $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
|
||||
|
||||
CFLAGS = -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES
|
||||
LDFLAGS = -Wl,--gc-sections -s
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
ifeq ($(strip $(RAY_CFLAGS)),)
|
||||
$(error RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop')
|
||||
endif
|
||||
ifeq ($(strip $(RAY_LDLIBS)),)
|
||||
$(error RAY_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
|
||||
endif
|
||||
ifeq ($(strip $(RAY_SDL_LDLIBS)),)
|
||||
$(error RAY_SDL_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
|
||||
endif
|
||||
ifeq ($(strip $(RAY_SDL_INCLUDE_DIR)),)
|
||||
$(error RAY_SDL_INCLUDE_DIR is not set. Enter the ray flake shell with 'nix develop')
|
||||
endif
|
||||
ifeq ($(strip $(RAY_RAYLIB_CONFIG)),)
|
||||
$(error RAY_RAYLIB_CONFIG is not set. Enter the ray flake shell with 'nix develop')
|
||||
endif
|
||||
|
||||
build:
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
$(LINUX_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(WINDOWS_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(ANDROID_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(WEB_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(RAYLIB_BUILD_DIR): build
|
||||
mkdir -p $@
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
dist:
|
||||
@# Get password once for both Android builds
|
||||
@if [ -n "$(PASSWORD)" ]; then \
|
||||
PASSWORD_VALUE="$(PASSWORD)"; \
|
||||
elif [ -t 0 ]; then \
|
||||
printf "Keystore password: "; \
|
||||
stty -echo; \
|
||||
read PASSWORD_VALUE; \
|
||||
stty echo; \
|
||||
printf "\n"; \
|
||||
else \
|
||||
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
if [ -z "$$PASSWORD_VALUE" ]; then \
|
||||
echo "Keystore password is required"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
echo "Building Android release APK (validating password)..."; \
|
||||
$(MAKE) android-release PASSWORD="$$PASSWORD_VALUE" || exit $$?; \
|
||||
echo "Building Android bundle..."; \
|
||||
$(MAKE) android-bundle PASSWORD="$$PASSWORD_VALUE" || exit $$?; \
|
||||
echo "✓ Android builds complete, proceeding with desktop builds..."; \
|
||||
$(MAKE) linux || exit $$?; \
|
||||
$(MAKE) windows || exit $$?; \
|
||||
$(MAKE) web || exit $$?; \
|
||||
$(MAKE) dist-linux || exit $$?; \
|
||||
$(MAKE) dist-windows || exit $$?
|
||||
|
||||
dist-linux: linux
|
||||
@echo "Creating Linux tar.gz package with all Linux arch binaries..."
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux
|
||||
@for bin in $(LINUX_BUILD_DIR)/inbe-linux-*; do \
|
||||
if [ -f "$$bin" ] && [ -x "$$bin" ]; then \
|
||||
echo "Adding $$bin"; \
|
||||
cp "$$bin" "$(LINUX_BUILD_DIR)/dist/inbe-linux/$$(basename "$$bin")"; \
|
||||
fi; \
|
||||
done
|
||||
@if [ -z "$$(find $(LINUX_BUILD_DIR)/dist/inbe-linux -type f 2>/dev/null)" ]; then \
|
||||
echo "No Linux binaries found in $(LINUX_BUILD_DIR)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@cp $(CONFIG_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/locales
|
||||
@cp $(LOCALE_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/locales/
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/themes
|
||||
@cp $(THEME_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/themes/
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets
|
||||
@cp $(IMAGE_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/fonts
|
||||
@cp $(FONT_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/fonts/
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds
|
||||
@cp $(SOUND_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds/
|
||||
@cd $(LINUX_BUILD_DIR)/dist && tar -czf ../inbe-linux.tar.gz inbe-linux/
|
||||
@rm -rf $(LINUX_BUILD_DIR)/dist
|
||||
@echo "Created $(LINUX_BUILD_DIR)/inbe-linux.tar.gz"
|
||||
|
||||
install: dist-linux
|
||||
@echo "Installing inbe to $(INSTALL_DIR)..."
|
||||
@mkdir -p $(INSTALL_DIR)
|
||||
@mkdir -p $(BIN_DIR)
|
||||
@tar -xzf $(TARBALL) -C $(INSTALL_DIR)
|
||||
@ARCH=$$(uname -m); \
|
||||
if [ "$$ARCH" != "x86_64" ] && [ "$$ARCH" != "aarch64" ]; then \
|
||||
echo "Warning: Unsupported architecture $$ARCH, defaulting to x86_64"; \
|
||||
ARCH="x86_64"; \
|
||||
fi; \
|
||||
BINARY_PATH="$(INSTALL_DIR)/inbe-linux/inbe-linux-$$ARCH"; \
|
||||
if [ ! -f "$$BINARY_PATH" ]; then \
|
||||
echo "Error: Binary not found: $$BINARY_PATH"; \
|
||||
echo "Available binaries:"; \
|
||||
ls $(INSTALL_DIR)/inbe-linux/inbe-linux-* 2>/dev/null || echo " None"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
if [ -L $(BIN_DIR)/inbe ]; then \
|
||||
echo "Removing existing symlink: $(BIN_DIR)/inbe"; \
|
||||
rm $(BIN_DIR)/inbe; \
|
||||
elif [ -e $(BIN_DIR)/inbe ]; then \
|
||||
echo "Error: $(BIN_DIR)/inbe exists and is not a symlink"; \
|
||||
echo "Please remove it manually and try again"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
ln -s "$$BINARY_PATH" $(BIN_DIR)/inbe && \
|
||||
echo "Created symlink: $(BIN_DIR)/inbe -> $$BINARY_PATH" && \
|
||||
echo "" && \
|
||||
echo "Installation complete!" && \
|
||||
echo " Binary: $(BIN_DIR)/inbe" && \
|
||||
echo " Data: $(INSTALL_DIR)/inbe-linux/" && \
|
||||
echo "" && \
|
||||
echo "Run 'inbe' to start the application"
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstalling inbe..."
|
||||
@if [ -L $(BIN_DIR)/inbe ]; then \
|
||||
echo "Removing symlink: $(BIN_DIR)/inbe"; \
|
||||
rm $(BIN_DIR)/inbe; \
|
||||
elif [ -e $(BIN_DIR)/inbe ]; then \
|
||||
echo "Warning: $(BIN_DIR)/inbe exists but is not a symlink"; \
|
||||
echo "Skipping symlink removal"; \
|
||||
fi
|
||||
@if [ -d $(INSTALL_DIR) ]; then \
|
||||
echo "Removing directory: $(INSTALL_DIR)"; \
|
||||
rm -rf $(INSTALL_DIR); \
|
||||
else \
|
||||
echo "Install directory not found: $(INSTALL_DIR)"; \
|
||||
fi
|
||||
@echo "Uninstall complete"
|
||||
|
||||
dist-windows:
|
||||
@echo "Creating Windows zip package with all Windows arch binaries..."
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows
|
||||
@for bin in $(WINDOWS_BUILD_DIR)/inbe-windows-*.exe; do \
|
||||
if [ -f "$$bin" ]; then \
|
||||
echo "Adding $$bin"; \
|
||||
cp "$$bin" "$(WINDOWS_BUILD_DIR)/dist/inbe-windows/$$(basename "$$bin")"; \
|
||||
fi; \
|
||||
done
|
||||
@if [ -z "$$(find $(WINDOWS_BUILD_DIR)/dist/inbe-windows -type f 2>/dev/null)" ]; then \
|
||||
echo "No Windows binaries found in $(WINDOWS_BUILD_DIR)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@cp $(CONFIG_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/locales
|
||||
@cp $(LOCALE_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/locales/
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes
|
||||
@cp $(THEME_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes/
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets
|
||||
@cp $(IMAGE_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/fonts
|
||||
@cp $(FONT_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/fonts/
|
||||
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds
|
||||
@cp $(SOUND_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds/
|
||||
@cd $(WINDOWS_BUILD_DIR)/dist && zip -r ../inbe-windows.zip inbe-windows/
|
||||
@rm -rf $(WINDOWS_BUILD_DIR)/dist
|
||||
@echo "Created $(WINDOWS_BUILD_DIR)/inbe-windows.zip"
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
BINARY_NAME = inbe-$(PLATFORM)-$(ARCH)
|
||||
TARGET = $(LINUX_BUILD_DIR)/$(BINARY_NAME)
|
||||
LINUX_INBE_A = $(LINUX_BUILD_DIR)/libinbe.a
|
||||
|
||||
all: native
|
||||
|
||||
native: $(TARGET)
|
||||
|
||||
$(RAYLIB_A): $(RAYLIB_SOURCES) | $(RAYLIB_BUILD_DIR)
|
||||
$(MAKE) -j1 -C $(RAYLIB_DIR) \
|
||||
PLATFORM=PLATFORM_DESKTOP_SDL \
|
||||
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
|
||||
RAYLIB_LIBTYPE=STATIC \
|
||||
RAYLIB_RELEASE_PATH=../build/sdl \
|
||||
RAYLIB_MODULE_AUDIO=TRUE \
|
||||
RAYLIB_MODULE_MODELS=FALSE \
|
||||
SDL_INCLUDE_PATH="$(RAY_SDL_INCLUDE_DIR)" \
|
||||
SDL_LIBRARIES="$(RAY_SDL_LDLIBS)" \
|
||||
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
|
||||
|
||||
$(LINUX_INBE_A): FORCE | $(LINUX_BUILD_DIR)
|
||||
$(MAKE) -C $(INBE_DIR) clean
|
||||
$(MAKE) -C $(INBE_DIR) CC=$(CC) AR=ar
|
||||
cp $(INBE_A) $@
|
||||
|
||||
$(TARGET): $(SRC) $(FLINT_SRCS) $(FONT_FILES) theme.ini inbe.ini $(RAYLIB_A) $(LINUX_INBE_A) | $(LINUX_BUILD_DIR)
|
||||
$(CC) $(CFLAGS) \
|
||||
-I$(RAYLIB_DIR) \
|
||||
-I$(INBE_DIR) \
|
||||
$(FLINT_INCLUDE) \
|
||||
-Isrc -Isrc/android \
|
||||
$(RAY_CFLAGS) \
|
||||
-DSUPPORT_MODULE_RAUDIO=1 \
|
||||
-DSUPPORT_FILEFORMAT_OGG=1 \
|
||||
-o $@ \
|
||||
$(SRC) \
|
||||
$(FLINT_SRCS) \
|
||||
$(LINUX_INBE_A) \
|
||||
$(RAYLIB_A) \
|
||||
$(RAY_LDLIBS) \
|
||||
-lm -lpthread -ldl -lrt \
|
||||
$(LDFLAGS)
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET)
|
||||
|
||||
linux: $(LINUX_ARCHES:%=linux-%)
|
||||
|
||||
linux-x86_64: | $(LINUX_BUILD_DIR)
|
||||
$(MAKE) build-linux-arch \
|
||||
ARCH_NAME=x86_64 \
|
||||
LINUX_CC="$(CC)" \
|
||||
LINUX_AR=ar \
|
||||
LINUX_RAY_CFLAGS="$(RAY_CFLAGS)" \
|
||||
LINUX_RAY_LDLIBS="$(RAY_LDLIBS)" \
|
||||
LINUX_RAY_SDL_LDLIBS="$(RAY_SDL_LDLIBS)" \
|
||||
LINUX_RAY_SDL_INCLUDE_DIR="$(RAY_SDL_INCLUDE_DIR)"
|
||||
|
||||
linux-aarch64: | $(LINUX_BUILD_DIR)
|
||||
@if [ -z "$(AARCH64_CC)" ] || [ -z "$(AARCH64_AR)" ] || [ -z "$(AARCH64_RAY_CFLAGS)" ] || [ -z "$(AARCH64_RAY_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_INCLUDE_DIR)" ]; then \
|
||||
echo "AARCH64 cross-build variables are missing. Enter the flake shell with 'nix develop'."; \
|
||||
exit 1; \
|
||||
fi
|
||||
$(MAKE) build-linux-arch \
|
||||
ARCH_NAME=aarch64 \
|
||||
LINUX_CC="$(AARCH64_CC)" \
|
||||
LINUX_AR="$(AARCH64_AR)" \
|
||||
LINUX_RAY_CFLAGS="$(AARCH64_RAY_CFLAGS)" \
|
||||
LINUX_RAY_LDLIBS="$(AARCH64_RAY_LDLIBS)" \
|
||||
LINUX_RAY_SDL_LDLIBS="$(AARCH64_RAY_SDL_LDLIBS)" \
|
||||
LINUX_RAY_SDL_INCLUDE_DIR="$(AARCH64_RAY_SDL_INCLUDE_DIR)"
|
||||
|
||||
build-linux-arch:
|
||||
@mkdir -p $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME) vendor/raylib/build/sdl-$(ARCH_NAME)
|
||||
$(MAKE) $(FONT_FILES)
|
||||
$(MAKE) -C $(RAYLIB_DIR) clean
|
||||
$(MAKE) -j1 -C $(RAYLIB_DIR) \
|
||||
CC="$(LINUX_CC)" \
|
||||
AR="$(LINUX_AR)" \
|
||||
PLATFORM=PLATFORM_DESKTOP_SDL \
|
||||
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
|
||||
RAYLIB_LIBTYPE=STATIC \
|
||||
RAYLIB_RELEASE_PATH=../build/sdl-$(ARCH_NAME) \
|
||||
RAYLIB_MODULE_AUDIO=TRUE \
|
||||
RAYLIB_MODULE_MODELS=FALSE \
|
||||
SDL_INCLUDE_PATH="$(LINUX_RAY_SDL_INCLUDE_DIR)" \
|
||||
SDL_LIBRARIES="$(LINUX_RAY_SDL_LDLIBS)" \
|
||||
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(LINUX_RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
|
||||
$(MAKE) -C $(RAYLIB_DIR) clean
|
||||
$(LINUX_CC) $(CFLAGS) -I$(INBE_DIR) -c $(INBE_DIR)/inbe.c -o $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
|
||||
$(LINUX_AR) rcs $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
|
||||
$(LINUX_CC) $(CFLAGS) \
|
||||
-I$(RAYLIB_DIR) \
|
||||
-I$(INBE_DIR) \
|
||||
$(FLINT_INCLUDE) \
|
||||
-Isrc -Isrc/android \
|
||||
$(LINUX_RAY_CFLAGS) \
|
||||
-DSUPPORT_MODULE_RAUDIO=1 \
|
||||
-DSUPPORT_FILEFORMAT_OGG=1 \
|
||||
-o $(LINUX_BUILD_DIR)/inbe-linux-$(ARCH_NAME) \
|
||||
$(SRC) \
|
||||
$(FLINT_SRCS) \
|
||||
$(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a \
|
||||
vendor/raylib/build/sdl-$(ARCH_NAME)/libraylib.a \
|
||||
$(LINUX_RAY_LDLIBS) \
|
||||
-lm -lpthread -ldl -lrt \
|
||||
$(LDFLAGS)
|
||||
@@ -0,0 +1,67 @@
|
||||
WEB_CC ?= emcc
|
||||
WEB_AR ?= emar
|
||||
WEB_TARGET = $(WEB_BUILD_DIR)/index.html
|
||||
WEB_RAYLIB_BUILD_DIR = $(WEB_BUILD_DIR)/raylib
|
||||
WEB_RAYLIB_A = $(WEB_RAYLIB_BUILD_DIR)/libraylib.web.a
|
||||
WEB_FLINT_SRCS = $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
|
||||
WEB_RAYLIB_OBJS = \
|
||||
$(WEB_RAYLIB_BUILD_DIR)/rcore.o \
|
||||
$(WEB_RAYLIB_BUILD_DIR)/rshapes.o \
|
||||
$(WEB_RAYLIB_BUILD_DIR)/rtextures.o \
|
||||
$(WEB_RAYLIB_BUILD_DIR)/rtext.o \
|
||||
$(WEB_RAYLIB_BUILD_DIR)/raudio.o
|
||||
WEB_CFLAGS = -Wall -Wextra -std=gnu99 -Os -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 -D_DEFAULT_SOURCE -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
|
||||
WEB_SHELL = src/web_shell.html
|
||||
WEB_SOUND_FILES = $(wildcard assets/sounds/*)
|
||||
WEB_FONT_FILES = $(FONT_FILES)
|
||||
WEB_LOCALE_PRELOADS = $(foreach file,$(LOCALE_FILES),--preload-file $(file)@locales/$(notdir $(file)))
|
||||
WEB_THEME_PRELOADS = $(foreach file,$(THEME_FILES),--preload-file $(file)@themes/$(notdir $(file)))
|
||||
WEB_SOUND_PRELOADS = $(foreach file,$(WEB_SOUND_FILES),--preload-file $(file)@assets/sounds/$(notdir $(file)))
|
||||
WEB_FONT_PRELOADS = $(foreach file,$(WEB_FONT_FILES),--preload-file $(file)@assets/fonts/$(notdir $(file)))
|
||||
WEB_ASSET_FILES = $(CONFIG_FILES) $(IMAGE_FILES) $(LOCALE_FILES) $(THEME_FILES) $(WEB_SOUND_FILES) $(WEB_FONT_FILES)
|
||||
WEB_PUBLIC_FILES = manifest.json $(shell find web-assets -type f 2>/dev/null)
|
||||
WEB_LDFLAGS = -sUSE_GLFW=3 -sALLOW_MEMORY_GROWTH=1 -lidbfs.js --shell-file $(WEB_SHELL) $(WEB_LOCALE_PRELOADS) $(WEB_THEME_PRELOADS) $(WEB_SOUND_PRELOADS) $(WEB_FONT_PRELOADS) --preload-file [email protected] --preload-file [email protected] --preload-file assets/angel.jpg@assets/angel.jpg --preload-file assets/begin.jpg@assets/begin.jpg
|
||||
|
||||
$(WEB_RAYLIB_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
web: $(WEB_TARGET)
|
||||
|
||||
$(WEB_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WEB_RAYLIB_BUILD_DIR)
|
||||
$(WEB_CC) \
|
||||
-c $< \
|
||||
-o $@ \
|
||||
-Wall \
|
||||
-D_GNU_SOURCE \
|
||||
-DPLATFORM_WEB \
|
||||
-DGRAPHICS_API_OPENGL_ES2 \
|
||||
-Wno-missing-braces \
|
||||
-Werror=pointer-arith \
|
||||
-fno-strict-aliasing \
|
||||
-std=gnu99 \
|
||||
-D_DEFAULT_SOURCE \
|
||||
$(INBE_RAYLIB_CONFIG) \
|
||||
-Os \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-I$(RAYLIB_DIR)
|
||||
|
||||
$(WEB_RAYLIB_A): $(RAYLIB_SOURCES) $(WEB_RAYLIB_OBJS)
|
||||
$(WEB_AR) rcs $@ $(WEB_RAYLIB_OBJS)
|
||||
|
||||
$(WEB_TARGET): $(BUILD_MAKEFILES) $(SRC) $(WEB_FLINT_SRCS) $(INBE_DIR)/inbe.c $(WEB_SHELL) $(WEB_RAYLIB_A) $(WEB_ASSET_FILES) $(WEB_PUBLIC_FILES) | $(WEB_BUILD_DIR)
|
||||
$(WEB_CC) $(WEB_CFLAGS) \
|
||||
-I$(RAYLIB_DIR) \
|
||||
-I$(INBE_DIR) \
|
||||
$(FLINT_INCLUDE) \
|
||||
-Isrc -Isrc/android \
|
||||
-o $@ \
|
||||
$(SRC) \
|
||||
$(WEB_FLINT_SRCS) \
|
||||
$(INBE_DIR)/inbe.c \
|
||||
$(WEB_RAYLIB_A) \
|
||||
$(WEB_LDFLAGS)
|
||||
cache_buster=$$(cksum $(WEB_BUILD_DIR)/index.js $(WEB_BUILD_DIR)/index.data $(WEB_BUILD_DIR)/index.wasm | cksum | cut -d ' ' -f 1); \
|
||||
sed -i "s#src=\"index.js\"#src=\"index.js?v=$$cache_buster\"#; s#WEB_CACHE_BUSTER#$$cache_buster#g" $(WEB_TARGET)
|
||||
rsync -a web-assets/ $(WEB_BUILD_DIR)/web-assets/
|
||||
cp manifest.json $(WEB_BUILD_DIR)/
|
||||
@@ -0,0 +1,64 @@
|
||||
WIN_CC = x86_64-w64-mingw32-gcc
|
||||
WIN_AR = x86_64-w64-mingw32-ar
|
||||
WIN_WINDRES = x86_64-w64-mingw32-windres
|
||||
WIN_TARGET = $(WINDOWS_BUILD_DIR)/inbe-windows-x86_64.exe
|
||||
WIN_RAYLIB_BUILD_DIR = $(WINDOWS_BUILD_DIR)/raylib
|
||||
WIN_RAYLIB_A = $(WIN_RAYLIB_BUILD_DIR)/libraylib.a
|
||||
WIN_FLINT_SRCS = $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
|
||||
WIN_RAYLIB_OBJS = \
|
||||
$(WIN_RAYLIB_BUILD_DIR)/rcore.o \
|
||||
$(WIN_RAYLIB_BUILD_DIR)/rshapes.o \
|
||||
$(WIN_RAYLIB_BUILD_DIR)/rtextures.o \
|
||||
$(WIN_RAYLIB_BUILD_DIR)/rtext.o \
|
||||
$(WIN_RAYLIB_BUILD_DIR)/raudio.o
|
||||
WIN_INBE_A = $(WINDOWS_BUILD_DIR)/libinbe.a
|
||||
|
||||
$(WIN_RAYLIB_BUILD_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
windows: $(WIN_TARGET)
|
||||
|
||||
$(WIN_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WIN_RAYLIB_BUILD_DIR)
|
||||
$(WIN_CC) \
|
||||
-c $< \
|
||||
-o $@ \
|
||||
-Wall \
|
||||
-D_GNU_SOURCE \
|
||||
-DPLATFORM_DESKTOP_WIN32 \
|
||||
-DGRAPHICS_API_OPENGL_33 \
|
||||
-DSUPPORT_MODULE_RAUDIO=1 \
|
||||
-DSUPPORT_FILEFORMAT_OGG=1 \
|
||||
-Wno-missing-braces \
|
||||
-Werror=pointer-arith \
|
||||
-fno-strict-aliasing \
|
||||
-std=gnu99 \
|
||||
-DUNICODE \
|
||||
$(INBE_RAYLIB_CONFIG) \
|
||||
-Os \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-I$(RAYLIB_DIR)
|
||||
|
||||
$(WIN_RAYLIB_A): $(RAYLIB_SOURCES) $(WIN_RAYLIB_OBJS)
|
||||
$(WIN_AR) rcs $@ $(WIN_RAYLIB_OBJS)
|
||||
|
||||
$(WIN_INBE_A): FORCE | $(WINDOWS_BUILD_DIR)
|
||||
$(MAKE) -C $(INBE_DIR) clean
|
||||
$(MAKE) -C $(INBE_DIR) CC=$(WIN_CC) AR=$(WIN_AR)
|
||||
cp $(INBE_A) $@
|
||||
|
||||
$(WIN_TARGET): $(SRC) $(WIN_FLINT_SRCS) $(FONT_FILES) $(WIN_RAYLIB_A) $(WIN_INBE_A) | $(WINDOWS_BUILD_DIR)
|
||||
$(WIN_CC) $(CFLAGS) \
|
||||
-I$(RAYLIB_DIR) \
|
||||
-I$(INBE_DIR) \
|
||||
$(FLINT_INCLUDE) \
|
||||
-Isrc -Isrc/android \
|
||||
-o $@ \
|
||||
$(SRC) \
|
||||
$(WIN_FLINT_SRCS) \
|
||||
$(WIN_INBE_A) \
|
||||
$(WIN_RAYLIB_A) \
|
||||
-L$(MCFGTHREADS)/lib \
|
||||
-lopengl32 -lgdi32 -lwinmm -lws2_32 \
|
||||
-mwindows \
|
||||
$(LDFLAGS)
|
||||
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Privacy Policy - Inner Breeze</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
max-width: 700px;
|
||||
margin: 40px auto;
|
||||
padding: 20px;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
h1 { color: #2563eb; }
|
||||
h2 { color: #1e40af; margin-top: 30px; }
|
||||
ul { margin: 10px 0; }
|
||||
li { margin: 5px 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Privacy Policy</h1>
|
||||
<p>Last updated: May 26, 2026</p>
|
||||
|
||||
<h2>Inner Breeze</h2>
|
||||
<p>Inner Breeze is a free, open-source guided breathing meditation app based on the Wim Hof method.</p>
|
||||
|
||||
<h2>Data Collection</h2>
|
||||
<p><strong>Inner Breeze does NOT collect, store, or transmit any personal data.</strong></p>
|
||||
<ul>
|
||||
<li>No user accounts or authentication</li>
|
||||
<li>No personal information collection</li>
|
||||
<li>No analytics or tracking</li>
|
||||
<li>No network requests or data transmission</li>
|
||||
<li>No third-party services</li>
|
||||
</ul>
|
||||
|
||||
<h2>Local Data Storage</h2>
|
||||
<p>The app stores session history locally on your device:</p>
|
||||
<ul>
|
||||
<li>Breathing session timing data (duration of each breath round)</li>
|
||||
<li>Unlimited session history</li>
|
||||
<li>Data remains on your device only</li>
|
||||
<li>Clear app data to delete all stored sessions</li>
|
||||
</ul>
|
||||
|
||||
<h2>Data Deletion</h2>
|
||||
<p>To delete your session data: Clear the app's data through your device's settings.</p>
|
||||
|
||||
<h2>Permissions</h2>
|
||||
<p>Inner Breeze requires no special permissions on Android or other platforms.</p>
|
||||
|
||||
<h2>Children's Privacy</h2>
|
||||
<p>Inner Breeze is suitable for all ages. Since no personal data is collected, it is COPPA compliant.</p>
|
||||
|
||||
<h2>Contact</h2>
|
||||
<p>Questions: <a href="mailto:[email protected]">[email protected]</a></p>
|
||||
|
||||
<h2>Open Source</h2>
|
||||
<p>Source code available at: <a href="https://git.sr.ht/~waozi/inbe">https://git.sr.ht/~waozi/inbe</a> and <a href="https://github.com/waozixyz/inbe">https://github.com/waozixyz/inbe</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+56
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
# Publish inbe HTML5 to itch.io using butler
|
||||
|
||||
set -e
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Check if butler is installed
|
||||
if ! command -v butler &> /dev/null; then
|
||||
echo "Error: 'butler' command not found"
|
||||
echo "Install it from: https://itch.io/docs/butler/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
WEB_BUILD_DIR="build/web"
|
||||
|
||||
# Verify the web build exists
|
||||
if [ ! -f "$WEB_BUILD_DIR/index.html" ]; then
|
||||
echo "Error: Web build not found at $WEB_BUILD_DIR/index.html"
|
||||
echo "Run 'make web' first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read version from src/version.h
|
||||
VERSION=$(grep INBE_VERSION_STRING src/version.h | grep -o '"[^"]*"' | tr -d '"')
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Error: Could not determine version from src/version.h"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ITCH_USER="waozi"
|
||||
ITCH_GAME="inbe"
|
||||
ITCH_CHANNEL="html5"
|
||||
|
||||
echo "Publishing inbe v$VERSION ($ITCH_CHANNEL) to itch.io..."
|
||||
echo " User: $ITCH_USER"
|
||||
echo " Game: $ITCH_GAME"
|
||||
echo " Channel: $ITCH_CHANNEL"
|
||||
echo " Build dir: $WEB_BUILD_DIR"
|
||||
echo ""
|
||||
|
||||
TMPDIR=$(mktemp -d -p /tmp)
|
||||
cleanup() {
|
||||
rm -rf "$TMPDIR"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
rsync -a \
|
||||
--exclude='raylib' \
|
||||
"$WEB_BUILD_DIR/" "$TMPDIR/"
|
||||
rsync -a web-assets/ "$TMPDIR/web-assets/"
|
||||
cp manifest.json "$TMPDIR/"
|
||||
|
||||
butler push "$TMPDIR" "$ITCH_USER/$ITCH_GAME:$ITCH_CHANNEL" --userversion "$VERSION"
|
||||
|
||||
echo "✓ Published inbe v$VERSION to https://$ITCH_USER.itch.io/$ITCH_GAME"
|
||||
Executable
+154
@@ -0,0 +1,154 @@
|
||||
#!/bin/bash
|
||||
# Publish inbe site to inbe.waozi.xyz
|
||||
|
||||
set -e
|
||||
SITE_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
cd "$SITE_DIR"
|
||||
|
||||
# Check if hut is installed
|
||||
if ! command -v hut &> /dev/null; then
|
||||
echo "Error: 'hut' command not found"
|
||||
echo "Install it with: nix-shell -p hut"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Publishing inbe.waozi.xyz..."
|
||||
|
||||
TMPDIR=$(mktemp -d -p /tmp)
|
||||
cleanup() {
|
||||
rm -rf "$TMPDIR"
|
||||
rm -f "$SITE_DIR/inbe.tar.gz"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
# Base site files
|
||||
rsync -av --delete \
|
||||
--exclude='local.properties' \
|
||||
--exclude='.git' \
|
||||
--exclude='*.sym' \
|
||||
--exclude='*.o' \
|
||||
--exclude='*.a' \
|
||||
--exclude='*.d' \
|
||||
--exclude='*.9' \
|
||||
--exclude='*.8' \
|
||||
--exclude='build' \
|
||||
--exclude='.gradle' \
|
||||
--exclude='.idea' \
|
||||
--exclude='node_modules' \
|
||||
--exclude='*.iml' \
|
||||
--exclude='.cxx' \
|
||||
--exclude='.externalNativeBuild' \
|
||||
--exclude='Captures' \
|
||||
--exclude='.DS_Store' \
|
||||
--exclude='Thumbs.db' \
|
||||
--exclude='.xdp-*' \
|
||||
--exclude='inbe.tar.gz' \
|
||||
--exclude='*.bak' \
|
||||
--exclude='*.swp' \
|
||||
--exclude='*.lock' \
|
||||
--exclude='assets' \
|
||||
--exclude='icons' \
|
||||
--exclude='site-icons' \
|
||||
--exclude='gradlew' \
|
||||
--exclude='gradlew.bat' \
|
||||
--exclude='shell.nix' \
|
||||
--exclude='flake.nix' \
|
||||
--exclude='flake.lock' \
|
||||
--exclude='Makefile' \
|
||||
--exclude='gradle' \
|
||||
--exclude='codex' \
|
||||
--exclude='.codex' \
|
||||
--exclude='.npm' \
|
||||
--exclude='.local' \
|
||||
--exclude='droid' \
|
||||
--exclude='vendor' \
|
||||
. "$TMPDIR/"
|
||||
|
||||
mkdir -p "$TMPDIR/rc"
|
||||
[ -f "rc/inbe.rc" ] && cp rc/inbe.rc "$TMPDIR/rc/"
|
||||
|
||||
mkdir -p "$TMPDIR/uxn/devices"
|
||||
[ -f "uxn/index.html" ] && cp uxn/index.html "$TMPDIR/uxn/"
|
||||
[ -f "uxn/inbe.rom" ] && cp uxn/inbe.* "$TMPDIR/uxn/"
|
||||
if [ -d "uxn/devices" ]; then
|
||||
rsync -av --exclude='*.sym' uxn/devices/*.js "$TMPDIR/uxn/devices/" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Raylib builds (primary implementation)
|
||||
mkdir -p "$TMPDIR/build/linux" "$TMPDIR/build/windows" "$TMPDIR/build/android"
|
||||
if [ -d "build/web" ]; then
|
||||
mkdir -p "$TMPDIR/build/web"
|
||||
for raylib_web_artifact in build/web/index.html build/web/index.js build/web/index.wasm build/web/index.data; do
|
||||
[ -f "$raylib_web_artifact" ] && cp "$raylib_web_artifact" "$TMPDIR/build/web/"
|
||||
done
|
||||
fi
|
||||
if [ -d "build/linux" ]; then
|
||||
for raylib_linux_artifact in build/linux/inbe-linux-* build/linux/inbe-linux.tar.gz; do
|
||||
[ -f "$raylib_linux_artifact" ] && cp "$raylib_linux_artifact" "$TMPDIR/build/linux/"
|
||||
done
|
||||
fi
|
||||
if [ -d "build/windows" ]; then
|
||||
for raylib_windows_artifact in build/windows/inbe-windows-* build/windows/inbe-windows.zip; do
|
||||
[ -f "$raylib_windows_artifact" ] && cp "$raylib_windows_artifact" "$TMPDIR/build/windows/"
|
||||
done
|
||||
fi
|
||||
if [ -d "build/android" ]; then
|
||||
for raylib_android_artifact in build/android/*.apk; do
|
||||
[ -f "$raylib_android_artifact" ] && cp "$raylib_android_artifact" "$TMPDIR/build/android/"
|
||||
done
|
||||
fi
|
||||
|
||||
mkdir -p "$TMPDIR/wasm4/build"
|
||||
[ -f "wasm4/build/index.html" ] && cp wasm4/build/index.html "$TMPDIR/wasm4/build/"
|
||||
[ -f "wasm4/build/inbe.wasm" ] && cp wasm4/build/inbe.wasm "$TMPDIR/wasm4/build/"
|
||||
for wasm4_artifact in wasm4/build/inbe-x86_64 wasm4/build/inbe-x86_64.exe wasm4/build/inbe-windows.zip wasm4/build/inbe-linux.tar.gz; do
|
||||
[ -f "$wasm4_artifact" ] && cp "$wasm4_artifact" "$TMPDIR/wasm4/build/"
|
||||
done
|
||||
[ -d "wasm4/src" ] && rsync -av --exclude='*.o' --exclude='*.d' --exclude='.npm' --exclude='.local' --exclude='.codex' wasm4/src/ "$TMPDIR/wasm4/src/"
|
||||
[ -f "wasm4/Makefile" ] && cp wasm4/Makefile "$TMPDIR/wasm4/"
|
||||
[ -f "wasm4/shell.nix" ] && cp wasm4/shell.nix "$TMPDIR/wasm4/"
|
||||
[ -f "wasm4/README.md" ] && cp wasm4/README.md "$TMPDIR/wasm4/"
|
||||
|
||||
mkdir -p "$TMPDIR/linux/build"
|
||||
if [ -d "linux/build" ]; then
|
||||
for linux_bin in linux/build/inbe-* linux/build/inbefb-* linux/build/inbe-linux.tar.gz; do
|
||||
[ -f "$linux_bin" ] && cp "$linux_bin" "$TMPDIR/linux/build/"
|
||||
done
|
||||
fi
|
||||
|
||||
mkdir -p "$TMPDIR/love2d"
|
||||
[ -f "love2d/inbe.html" ] && cp love2d/inbe.* "$TMPDIR/love2d/"
|
||||
[ -d "love2d/build/inbe" ] && mkdir -p "$TMPDIR/love2d/build" && rsync -av --exclude='*.o' --exclude='*.d' --exclude='.npm' --exclude='.local' --exclude='.codex' love2d/build/inbe/ "$TMPDIR/love2d/build/inbe/"
|
||||
|
||||
mkdir -p "$TMPDIR/tcl"
|
||||
[ -f "tcl/inbe.tcl" ] && cp tcl/inbe.tcl "$TMPDIR/tcl/"
|
||||
|
||||
# Compatibility copy for older Android links.
|
||||
mkdir -p "$TMPDIR/droid"
|
||||
[ -f "build/android/app-universal-release.apk" ] && cp build/android/app-universal-release.apk "$TMPDIR/droid/app-release.apk"
|
||||
|
||||
cp style.css og.png sitemap.xml robots.txt "$TMPDIR/"
|
||||
[ -f "manifest.json" ] && cp manifest.json "$TMPDIR/"
|
||||
[ -d "web-assets" ] && rsync -a web-assets/ "$TMPDIR/web-assets/"
|
||||
|
||||
if [ -f "$TMPDIR/index.html" ]; then
|
||||
sed -e 's|/inbe/droid/app/build/outputs/apk/release/app-release.apk|/build/android/app-universal-release.apk|g' \
|
||||
-e 's|/inbe/|/|g' \
|
||||
"$TMPDIR/index.html" > "$TMPDIR/index_.html" && mv "$TMPDIR/index_.html" "$TMPDIR/index.html"
|
||||
fi
|
||||
|
||||
# Create tarball directly in SITE_DIR
|
||||
echo "Creating inbe.tar.gz..."
|
||||
tar -czf "$SITE_DIR/inbe.tar.gz" -C "$TMPDIR" .
|
||||
|
||||
if [ ! -f "$SITE_DIR/inbe.tar.gz" ]; then
|
||||
echo "Error: inbe.tar.gz was not created!"
|
||||
rm -rf "$TMPDIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hut pages publish -d inbe.waozi.xyz "$SITE_DIR/inbe.tar.gz"
|
||||
echo "✓ Published to https://inbe.waozi.xyz"
|
||||
|
||||
echo "✓ Done"
|
||||
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://inbe.waozi.xyz/sitemap.xml
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Generate embedded assets for Android without requiring nix-shell.
|
||||
# Copy assets to Android project without requiring nix-shell or Makefile dependencies
|
||||
# This script is used by GitHub Actions and F-Droid builds
|
||||
# This script works from any directory by detecting the repository root
|
||||
|
||||
@@ -13,15 +13,42 @@ REPO_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
cd "$REPO_ROOT" || exit 1
|
||||
|
||||
echo "Running from repository root: $(pwd)"
|
||||
echo "Generating embedded assets for Android..."
|
||||
echo "Copying assets to Android project..."
|
||||
|
||||
ANDROID_DIR="droid"
|
||||
ASSETS_DIR="$ANDROID_DIR/app/src/main/assets"
|
||||
|
||||
# Keep APK assets empty; runtime assets are compiled into the native library.
|
||||
echo "Copying assets to Android project..."
|
||||
|
||||
# Remove and recreate assets directory
|
||||
rm -rf "$ASSETS_DIR"
|
||||
mkdir -p "$ASSETS_DIR"
|
||||
|
||||
# Copy config files
|
||||
echo "Copying config files..."
|
||||
cp inbe.ini "$ASSETS_DIR/inbe.ini"
|
||||
cp theme.ini "$ASSETS_DIR/theme.ini"
|
||||
|
||||
# Copy locales
|
||||
echo "Copying locales..."
|
||||
mkdir -p "$ASSETS_DIR/locales"
|
||||
cp locales/*.txt "$ASSETS_DIR/locales/"
|
||||
|
||||
# Copy themes
|
||||
echo "Copying themes..."
|
||||
mkdir -p "$ASSETS_DIR/themes"
|
||||
cp vendor/flint/themes/*.ini "$ASSETS_DIR/themes/" 2>/dev/null || echo "No theme files found in vendor/flint/themes/"
|
||||
|
||||
# Copy images
|
||||
echo "Copying images..."
|
||||
mkdir -p "$ASSETS_DIR/assets"
|
||||
cp assets/angel.jpg assets/begin.jpg "$ASSETS_DIR/assets/"
|
||||
|
||||
# Copy sounds
|
||||
echo "Copying sounds..."
|
||||
mkdir -p "$ASSETS_DIR/assets/sounds"
|
||||
cp assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg "$ASSETS_DIR/assets/sounds/"
|
||||
|
||||
# Build fonts only when explicitly requested. Android/F-Droid builds use the
|
||||
# committed glyph atlas so they do not need host build tools beyond Gradle.
|
||||
if [ "${INBE_REBUILD_FONTS:-0}" = "1" ]; then
|
||||
@@ -33,14 +60,8 @@ else
|
||||
echo "Using versioned fonts..."
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
sh vendor/flint/scripts/embed-assets.sh build/inbe_embedded_assets.c \
|
||||
locales/*.txt \
|
||||
vendor/flint/themes/*.ini \
|
||||
assets/angel.jpg \
|
||||
assets/begin.jpg \
|
||||
assets/fonts/locales.png \
|
||||
assets/fonts/locales.dat \
|
||||
assets/sounds/*.ogg
|
||||
echo "Copying fonts..."
|
||||
mkdir -p "$ASSETS_DIR/assets/fonts"
|
||||
cp assets/fonts/locales.png assets/fonts/locales.dat "$ASSETS_DIR/assets/fonts/"
|
||||
|
||||
echo "Embedded assets generated successfully!"
|
||||
echo "Assets copied successfully!"
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
APK_PATH="build/android/app-universal-debug.apk"
|
||||
PACKAGE_NAME="xyz.waozi.inbe"
|
||||
|
||||
echo "🚀 Android App Builder & Installer"
|
||||
echo " This script builds the APK and installs it to your chosen device"
|
||||
echo ""
|
||||
|
||||
# Build APK
|
||||
echo "🔨 Building APK..."
|
||||
make android-debug
|
||||
echo "✅ APK built: $APK_PATH"
|
||||
echo ""
|
||||
|
||||
# Get list of connected devices
|
||||
mapfile -t DEVICES < <(adb devices | grep -v "List" | grep -v "^$" | awk '{print $1}')
|
||||
|
||||
if [ ${#DEVICES[@]} -eq 0 ]; then
|
||||
echo "❌ No Android devices found"
|
||||
echo " Connect a device or start an emulator:"
|
||||
echo " ./scripts/emulator.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "📱 Found ${#DEVICES[@]} device(s):"
|
||||
for i in "${!DEVICES[@]}"; do
|
||||
DEVICE_ID="${DEVICES[$i]}"
|
||||
# Get device info
|
||||
DEVICE_NAME=$(adb -s "$DEVICE_ID" shell getprop ro.product.model 2>/dev/null | tr -d '\r')
|
||||
DEVICE_ANDROID=$(adb -s "$DEVICE_ID" shell getprop ro.build.version.release 2>/dev/null | tr -d '\r')
|
||||
echo " [$i] $DEVICE_ID"
|
||||
echo " Model: $DEVICE_NAME"
|
||||
echo " Android: $DEVICE_ANDROID"
|
||||
echo ""
|
||||
done
|
||||
|
||||
# Select device
|
||||
if [ ${#DEVICES[@]} -eq 1 ]; then
|
||||
SELECTED_DEVICE="${DEVICES[0]}"
|
||||
echo "✅ Using only available device"
|
||||
else
|
||||
echo -n "👉 Select device number [0-$((${#DEVICES[@]}-1))]: "
|
||||
read -r SELECTION
|
||||
SELECTED_DEVICE="${DEVICES[$SELECTION]}"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "📦 Installing APK to $SELECTED_DEVICE..."
|
||||
adb -s "$SELECTED_DEVICE" install -r "$APK_PATH"
|
||||
|
||||
echo "🚀 Launching app..."
|
||||
adb -s "$SELECTED_DEVICE" shell am start -n "$PACKAGE_NAME/.MainActivity"
|
||||
|
||||
echo ""
|
||||
echo "🎉 App is running!"
|
||||
echo ""
|
||||
echo "To rebuild and reinstall:"
|
||||
echo " ./scripts/run-android.sh"
|
||||
echo ""
|
||||
echo "To view logs:"
|
||||
echo " adb -s $SELECTED_DEVICE logcat | grep inbe"
|
||||
@@ -0,0 +1,15 @@
|
||||
speed 6
|
||||
max_rounds 4
|
||||
max_breaths 30
|
||||
pause_seconds 2
|
||||
sound_volume 100
|
||||
tutorial_seen 1
|
||||
theme 4
|
||||
dark_mode 0
|
||||
fullscreen 0
|
||||
on_screen_keyboard 1
|
||||
progressive_speed 1
|
||||
progressive_start_speed 3
|
||||
advanced_session_controls 1
|
||||
hold_display_mode 0
|
||||
language en
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://inbe.waozi.xyz/</loc>
|
||||
<lastmod>2026-05-29</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://inbe.waozi.xyz/builds.html</loc>
|
||||
<lastmod>2026-05-29</lastmod>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://inbe.waozi.xyz/privacy.html</loc>
|
||||
<lastmod>2026-05-26</lastmod>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
@@ -14,8 +14,6 @@
|
||||
#include "version.h"
|
||||
#include "flint_ui.h"
|
||||
#include "flint_dpi.h"
|
||||
#include "flint_text.h"
|
||||
#include "flint_embedded_assets.h"
|
||||
|
||||
#if !defined(LOTUS_BUILD)
|
||||
#define RINI_IMPLEMENTATION
|
||||
@@ -45,11 +43,11 @@ void set_global_inbe_app(InbeApp *app);
|
||||
#define INBE_DEFAULT_HEIGHT 560
|
||||
|
||||
InbeConfig config = {
|
||||
.title = "Inner Breeze",
|
||||
.title = "",
|
||||
.width = INBE_DEFAULT_WIDTH,
|
||||
.height = INBE_DEFAULT_HEIGHT,
|
||||
.loaded = 0,
|
||||
.title_custom = 1
|
||||
.title_custom = 0
|
||||
};
|
||||
|
||||
int view_width = INBE_DEFAULT_WIDTH;
|
||||
@@ -126,19 +124,11 @@ load_locale_font(InbeApp *app)
|
||||
{
|
||||
Font font;
|
||||
Image white;
|
||||
const FlintEmbeddedAsset *png;
|
||||
const FlintEmbeddedAsset *dat;
|
||||
|
||||
if(app == NULL)
|
||||
return 0;
|
||||
|
||||
png = flint_embedded_asset(LOCALE_FONT_PNG);
|
||||
dat = flint_embedded_asset(LOCALE_FONT_DAT);
|
||||
if(png == NULL || dat == NULL)
|
||||
return 0;
|
||||
|
||||
font = flint_text_load_chopped_font_from_memory(png->data, png->size, dat->data, dat->size,
|
||||
LOCALE_FONT_BASE_SIZE);
|
||||
font = flint_text_load_chopped_font(LOCALE_FONT_PNG, LOCALE_FONT_DAT, LOCALE_FONT_BASE_SIZE);
|
||||
if(font.texture.id == 0)
|
||||
return 0;
|
||||
|
||||
@@ -315,13 +305,24 @@ refresh_theme_colors(int theme_id, int dark_mode)
|
||||
static void
|
||||
inbe_settings_path(char *out, size_t out_size)
|
||||
{
|
||||
snprintf(out, out_size, "%s/settings.ini", data_root());
|
||||
char apps_path[FS_PATH_MAX];
|
||||
char inbe_path[FS_PATH_MAX];
|
||||
snprintf(apps_path, sizeof(apps_path), "%s/apps", data_root());
|
||||
if(!DirectoryExists(apps_path))
|
||||
MakeDirectory(apps_path);
|
||||
snprintf(inbe_path, sizeof(inbe_path), "%s/apps/inbe", data_root());
|
||||
if(!DirectoryExists(inbe_path))
|
||||
MakeDirectory(inbe_path);
|
||||
snprintf(out, out_size, "%s/apps/inbe/settings.ini", data_root());
|
||||
}
|
||||
|
||||
static void
|
||||
register_all_themes(void)
|
||||
{
|
||||
flint_theme_register_defaults("vendor/flint/themes");
|
||||
if(DirectoryExists("vendor/flint/themes"))
|
||||
flint_theme_register_defaults("vendor/flint/themes");
|
||||
else
|
||||
flint_theme_register_defaults("themes");
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -330,6 +331,34 @@ load_config(void)
|
||||
if(config.loaded)
|
||||
return;
|
||||
|
||||
const char *paths[] = {
|
||||
"inbe.ini",
|
||||
"apps/inbe/inbe.ini",
|
||||
"../inbe/inbe.ini",
|
||||
0
|
||||
};
|
||||
|
||||
for(int i = 0; paths[i] != 0; i++) {
|
||||
rini_data ini = rini_load(paths[i]);
|
||||
if(ini.count == 0) {
|
||||
rini_unload(&ini);
|
||||
continue;
|
||||
}
|
||||
|
||||
const char *title = rini_get_value_text(ini, "title");
|
||||
if(title != NULL && title[0] != '\0') {
|
||||
snprintf(config.title, sizeof(config.title), "%s", title);
|
||||
config.title_custom = 1;
|
||||
} else {
|
||||
snprintf(config.title, sizeof(config.title), "%s", locale_get("app_title"));
|
||||
config.title_custom = 0;
|
||||
}
|
||||
config.width = rini_get_value_fallback(ini, "width", INBE_DEFAULT_WIDTH);
|
||||
config.height = rini_get_value_fallback(ini, "height", INBE_DEFAULT_HEIGHT);
|
||||
rini_unload(&ini);
|
||||
break;
|
||||
}
|
||||
|
||||
if(config.title[0] == '\0') {
|
||||
snprintf(config.title, sizeof(config.title), "%s", locale_get("app_title"));
|
||||
config.title_custom = 0;
|
||||
@@ -462,7 +491,6 @@ load_settings(InbeApp *app)
|
||||
char settings_path[FS_PATH_MAX];
|
||||
inbe_settings_path(settings_path, sizeof(settings_path));
|
||||
rini_data settings = rini_load(settings_path);
|
||||
int settings_missing = settings.count == 0;
|
||||
|
||||
int speed = rini_get_value_fallback(settings, "speed", DefaultSpeedLevel);
|
||||
int max_rounds = rini_get_value_fallback(settings, "max_rounds", DefaultMaxRounds);
|
||||
@@ -524,39 +552,12 @@ load_settings(InbeApp *app)
|
||||
apply_settings(&app->inbe, speed, max_rounds, max_breaths, pause_seconds);
|
||||
refresh_locale_dependent_text(app);
|
||||
rini_unload(&settings);
|
||||
if(settings_missing)
|
||||
save_settings(app);
|
||||
}
|
||||
|
||||
static Texture2D
|
||||
load_pixel_texture_from_asset(const char *path)
|
||||
load_pixel_texture(const char *path)
|
||||
{
|
||||
const FlintEmbeddedAsset *asset = flint_embedded_asset(path);
|
||||
Image image;
|
||||
Texture2D texture = {0};
|
||||
|
||||
if(asset == NULL || asset->data == NULL || asset->size == 0)
|
||||
return texture;
|
||||
|
||||
image = LoadImageFromMemory(flint_embedded_asset_extension(path), asset->data, (int)asset->size);
|
||||
if(image.data == NULL)
|
||||
return texture;
|
||||
|
||||
#if defined(_WIN32)
|
||||
{
|
||||
int pot_w = 1;
|
||||
int pot_h = 1;
|
||||
while(pot_w < image.width)
|
||||
pot_w <<= 1;
|
||||
while(pot_h < image.height)
|
||||
pot_h <<= 1;
|
||||
if(pot_w != image.width || pot_h != image.height)
|
||||
ImageResizeCanvas(&image, pot_w, pot_h, 0, 0, BLANK);
|
||||
}
|
||||
#endif
|
||||
|
||||
texture = LoadTextureFromImage(image);
|
||||
UnloadImage(image);
|
||||
Texture2D texture = LoadTexture(path);
|
||||
if(texture.id != 0)
|
||||
SetTextureFilter(texture, TEXTURE_FILTER_POINT);
|
||||
return texture;
|
||||
@@ -582,29 +583,40 @@ load_asset_texture(const char *name)
|
||||
char path[64];
|
||||
|
||||
snprintf(path, sizeof(path), "assets/%s", name);
|
||||
return load_pixel_texture_from_asset(path);
|
||||
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID) || defined(PLATFORM_WEB)
|
||||
return load_pixel_texture(path);
|
||||
#else
|
||||
if(FileExists(path))
|
||||
return load_pixel_texture(path);
|
||||
|
||||
snprintf(path, sizeof(path), "../inbe/assets/%s", name);
|
||||
if(FileExists(path))
|
||||
return load_pixel_texture(path);
|
||||
|
||||
snprintf(path, sizeof(path), "../assets/%s", name);
|
||||
return load_pixel_texture(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
static Sound
|
||||
load_sound_asset(const char *name)
|
||||
{
|
||||
char path[96];
|
||||
const FlintEmbeddedAsset *asset;
|
||||
Wave wave;
|
||||
Sound sound = {0};
|
||||
|
||||
snprintf(path, sizeof(path), "assets/sounds/%s", name);
|
||||
asset = flint_embedded_asset(path);
|
||||
if(asset == NULL || asset->data == NULL || asset->size == 0)
|
||||
return sound;
|
||||
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID) || defined(PLATFORM_WEB)
|
||||
return LoadSound(path);
|
||||
#else
|
||||
if(FileExists(path))
|
||||
return LoadSound(path);
|
||||
|
||||
wave = LoadWaveFromMemory(flint_embedded_asset_extension(path), asset->data, (int)asset->size);
|
||||
if(wave.data == NULL)
|
||||
return sound;
|
||||
snprintf(path, sizeof(path), "../inbe/assets/sounds/%s", name);
|
||||
if(FileExists(path))
|
||||
return LoadSound(path);
|
||||
|
||||
sound = LoadSoundFromWave(wave);
|
||||
UnloadWave(wave);
|
||||
return sound;
|
||||
snprintf(path, sizeof(path), "../assets/sounds/%s", name);
|
||||
return LoadSound(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -751,9 +763,6 @@ inbe_app_init(void *vapp) {
|
||||
if(app->globe_icon.id == 0) {
|
||||
app->globe_icon = load_icon_texture("globe.png");
|
||||
}
|
||||
if(app->btc_icon.id == 0) {
|
||||
app->btc_icon = load_icon_texture("btc.png");
|
||||
}
|
||||
if(app->monero_icon.id == 0) {
|
||||
app->monero_icon = load_icon_texture("monero.png");
|
||||
}
|
||||
@@ -1031,7 +1040,6 @@ inbe_app_destroy(void *vapp)
|
||||
SafeUnloadTexture(app->save_icon);
|
||||
SafeUnloadTexture(app->discord_icon);
|
||||
SafeUnloadTexture(app->telegram_icon);
|
||||
SafeUnloadTexture(app->btc_icon);
|
||||
SafeUnloadTexture(app->monero_icon);
|
||||
SafeUnloadTexture(app->sound0_icon);
|
||||
SafeUnloadTexture(app->sound1_icon);
|
||||
|
||||
@@ -133,7 +133,6 @@ struct InbeApp {
|
||||
Texture2D discord_icon;
|
||||
Texture2D telegram_icon;
|
||||
Texture2D globe_icon;
|
||||
Texture2D btc_icon;
|
||||
Texture2D monero_icon;
|
||||
Texture2D sound0_icon;
|
||||
Texture2D sound1_icon;
|
||||
|
||||
+40
-119
@@ -309,35 +309,25 @@ data_root(void)
|
||||
return g_data_root;
|
||||
|
||||
#if defined(PLATFORM_WEB)
|
||||
snprintf(g_data_root, sizeof(g_data_root), "/home/inbe");
|
||||
snprintf(g_data_root, sizeof(g_data_root), "/home/lotus");
|
||||
EM_ASM({
|
||||
try {
|
||||
FS.mkdir('/home');
|
||||
FS.mkdir('/home/inbe');
|
||||
FS.mkdir('/home/lotus');
|
||||
} catch(e) {}
|
||||
});
|
||||
#elif defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID)
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/inbe", GetWorkingDirectory());
|
||||
#elif defined(_WIN32)
|
||||
const char *local = getenv("LOCALAPPDATA");
|
||||
const char *roaming = getenv("APPDATA");
|
||||
|
||||
if(local != NULL && local[0] != '\0')
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/Inbe", local);
|
||||
else if(roaming != NULL && roaming[0] != '\0')
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/Inbe", roaming);
|
||||
else
|
||||
snprintf(g_data_root, sizeof(g_data_root), "Inbe");
|
||||
snprintf(g_data_root, sizeof(g_data_root), "/data/data/xyz.waozi.inbe/files/lotus");
|
||||
#else
|
||||
const char *xdg = getenv("XDG_DATA_HOME");
|
||||
const char *home = getenv("HOME");
|
||||
|
||||
if(xdg != NULL && xdg[0] != '\0')
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/inbe", xdg);
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/lotus", xdg);
|
||||
else if(home != NULL && home[0] != '\0')
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/.local/share/inbe", home);
|
||||
snprintf(g_data_root, sizeof(g_data_root), "%s/.local/share/lotus", home);
|
||||
else
|
||||
snprintf(g_data_root, sizeof(g_data_root), ".local/inbe");
|
||||
snprintf(g_data_root, sizeof(g_data_root), ".local/lotus");
|
||||
#endif
|
||||
|
||||
ensure_dir(g_data_root);
|
||||
@@ -844,9 +834,6 @@ parse_session_path(const char *zip_path, int *year, int *month, int *day, char *
|
||||
if(strncmp(p, "inbe-", 5) != 0)
|
||||
return 0;
|
||||
|
||||
if(strchr(p, '/') != NULL || strchr(p, '\\') != NULL)
|
||||
return 0;
|
||||
|
||||
// Copy filename
|
||||
if(strlen(p) >= FS_PATH_MAX - 1)
|
||||
return 0;
|
||||
@@ -861,14 +848,14 @@ parse_session_path(const char *zip_path, int *year, int *month, int *day, char *
|
||||
}
|
||||
|
||||
static int
|
||||
parse_session_content(const char *content, int *round_times, int max_rounds, int *round_count)
|
||||
validate_session_content(const char *content, int *round_count)
|
||||
{
|
||||
char *dup;
|
||||
char *line;
|
||||
int count = 0;
|
||||
int valid = 1;
|
||||
|
||||
if(content == NULL || round_times == NULL || round_count == NULL || max_rounds <= 0)
|
||||
if(content == NULL || round_count == NULL)
|
||||
return 0;
|
||||
|
||||
dup = strdup(content);
|
||||
@@ -883,8 +870,8 @@ parse_session_content(const char *content, int *round_times, int max_rounds, int
|
||||
|
||||
if(*line != '\0') {
|
||||
int seconds = atoi(line);
|
||||
if(seconds > 0 && seconds <= 999 && count < max_rounds) {
|
||||
round_times[count++] = seconds;
|
||||
if(seconds > 0 && seconds <= 999) {
|
||||
count++;
|
||||
} else {
|
||||
valid = 0;
|
||||
break;
|
||||
@@ -905,66 +892,33 @@ parse_session_content(const char *content, int *round_times, int max_rounds, int
|
||||
}
|
||||
|
||||
static int
|
||||
write_session_content_atomic(const char *path, const int *round_times, int round_count)
|
||||
import_session_file(const char *zip_path, const char *local_path, mz_zip_archive *archive)
|
||||
{
|
||||
char temp_path[FS_PATH_MAX];
|
||||
char text[MaxRounds * 8];
|
||||
int offset = 0;
|
||||
char *content = NULL;
|
||||
size_t size;
|
||||
FILE *fp;
|
||||
int round_count;
|
||||
|
||||
if(path == NULL || path[0] == '\0' || round_times == NULL || round_count <= 0 || round_count > MaxRounds)
|
||||
if(zip_path == NULL || local_path == NULL || archive == NULL)
|
||||
return 0;
|
||||
|
||||
snprintf(temp_path, sizeof(temp_path), "%s.importing", path);
|
||||
|
||||
for(int i = 0; i < round_count; i++) {
|
||||
if(round_times[i] <= 0)
|
||||
continue;
|
||||
if(offset >= (int)sizeof(text) - 8)
|
||||
break;
|
||||
offset += snprintf(text + offset, sizeof(text) - (size_t)offset,
|
||||
"%d\n", round_times[i]);
|
||||
}
|
||||
|
||||
if(offset <= 0)
|
||||
return 0;
|
||||
|
||||
fp = fopen(temp_path, "w");
|
||||
if(fp == NULL) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to open temp import file: %s", temp_path);
|
||||
// Extract file from ZIP
|
||||
size = 0;
|
||||
content = (char *)mz_zip_reader_extract_file_to_heap(archive, zip_path, &size, 0);
|
||||
if(content == NULL || size == 0) {
|
||||
TraceLog(LOG_WARNING, "DATA: failed to extract file from ZIP: %s", zip_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(fwrite(text, 1, (size_t)offset, fp) != (size_t)offset) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to write temp import file: %s", temp_path);
|
||||
fclose(fp);
|
||||
remove(temp_path);
|
||||
// Validate session content
|
||||
if(!validate_session_content(content, &round_count)) {
|
||||
TraceLog(LOG_WARNING, "DATA: invalid session content: %s", zip_path);
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(fclose(fp) != 0) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to close temp import file: %s", temp_path);
|
||||
remove(temp_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(rename(temp_path, path) != 0) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to move temp import file to %s", path);
|
||||
remove(temp_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
ensure_session_parent_dir(const char *local_path)
|
||||
{
|
||||
// Create directory structure if needed
|
||||
char dir_path[FS_PATH_MAX];
|
||||
|
||||
if(local_path == NULL || local_path[0] == '\0')
|
||||
return 0;
|
||||
|
||||
strncpy(dir_path, local_path, sizeof(dir_path) - 1);
|
||||
dir_path[sizeof(dir_path) - 1] = '\0';
|
||||
|
||||
@@ -973,63 +927,30 @@ ensure_session_parent_dir(const char *local_path)
|
||||
*last_slash = '\0';
|
||||
if(!ensure_dir(dir_path)) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to create directory: %s", dir_path);
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
import_session_file(const char *zip_path, const char *local_path, mz_zip_archive *archive)
|
||||
{
|
||||
char *content = NULL;
|
||||
char *import_text = NULL;
|
||||
size_t size;
|
||||
int imported_rounds[MaxRounds];
|
||||
int imported_count = 0;
|
||||
|
||||
if(zip_path == NULL || local_path == NULL || archive == NULL)
|
||||
return 0;
|
||||
|
||||
size = 0;
|
||||
content = (char *)mz_zip_reader_extract_file_to_heap(archive, zip_path, &size, 0);
|
||||
if(content == NULL || size == 0) {
|
||||
TraceLog(LOG_WARNING, "DATA: failed to extract file from ZIP: %s", zip_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
import_text = malloc(size + 1);
|
||||
if(import_text == NULL) {
|
||||
// Write session file
|
||||
fp = fopen(local_path, "w");
|
||||
if(fp == NULL) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to open file for writing: %s", local_path);
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
memcpy(import_text, content, size);
|
||||
import_text[size] = '\0';
|
||||
|
||||
if(fwrite(content, 1, size, fp) != size) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to write session file: %s", local_path);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
free(content);
|
||||
|
||||
if(!parse_session_content(import_text, imported_rounds, MaxRounds, &imported_count)) {
|
||||
TraceLog(LOG_WARNING, "DATA: invalid session content: %s", zip_path);
|
||||
free(import_text);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(!ensure_session_parent_dir(local_path)) {
|
||||
free(import_text);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(FileExists(local_path))
|
||||
TraceLog(LOG_INFO, "DATA: replacing existing imported session: %s", local_path);
|
||||
|
||||
if(!write_session_content_atomic(local_path, imported_rounds, imported_count)) {
|
||||
free(import_text);
|
||||
return 0;
|
||||
}
|
||||
|
||||
free(import_text);
|
||||
|
||||
TraceLog(LOG_INFO, "DATA: imported session: %s (%d rounds)", local_path, imported_count);
|
||||
TraceLog(LOG_INFO, "DATA: imported session: %s (%d rounds)", local_path, round_count);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+20
-159
@@ -1,19 +1,9 @@
|
||||
#include "raylib.h"
|
||||
#include "app.h"
|
||||
#include "flint_dpi.h"
|
||||
#include "flint_web.h"
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(_WIN32) && !defined(__ANDROID__)
|
||||
__declspec(dllimport) int __stdcall MessageBoxA(void *hwnd, const char *text,
|
||||
const char *caption, unsigned int type);
|
||||
#define MB_OK 0x00000000u
|
||||
#define MB_ICONERROR 0x00000010u
|
||||
#define WIN_ERROR_LOG_CAP 2048
|
||||
#endif
|
||||
|
||||
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID)
|
||||
#include "android_insets.h"
|
||||
#include "android_wakelock.h"
|
||||
@@ -30,127 +20,6 @@ extern struct android_app *GetAndroidApp(void);
|
||||
static InbeApp inbe_app;
|
||||
static InbeApp *g_inbe_app_ptr = NULL; // Global pointer for JNI access
|
||||
|
||||
#if defined(_WIN32) && !defined(__ANDROID__)
|
||||
static FILE *win_log_file;
|
||||
static char win_recent_errors[WIN_ERROR_LOG_CAP];
|
||||
static int win_recent_errors_len;
|
||||
|
||||
static int
|
||||
windows_text_contains(const char *text, const char *needle)
|
||||
{
|
||||
if(text == NULL || needle == NULL || needle[0] == '\0')
|
||||
return 0;
|
||||
|
||||
for(const char *p = text; *p != '\0'; p++) {
|
||||
const char *a = p;
|
||||
const char *b = needle;
|
||||
while(*a != '\0' && *b != '\0' && *a == *b) {
|
||||
a++;
|
||||
b++;
|
||||
}
|
||||
if(*b == '\0')
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
windows_remember_error(const char *level, const char *message)
|
||||
{
|
||||
if(message == NULL || message[0] == '\0')
|
||||
return;
|
||||
|
||||
int written = snprintf(win_recent_errors + win_recent_errors_len,
|
||||
sizeof(win_recent_errors) - (size_t)win_recent_errors_len,
|
||||
"[%s] %s\n",
|
||||
level,
|
||||
message);
|
||||
|
||||
if(written <= 0)
|
||||
return;
|
||||
|
||||
if((size_t)written >= sizeof(win_recent_errors) - (size_t)win_recent_errors_len) {
|
||||
win_recent_errors_len = (int)sizeof(win_recent_errors) - 1;
|
||||
return;
|
||||
}
|
||||
|
||||
win_recent_errors_len += written;
|
||||
}
|
||||
|
||||
static void
|
||||
windows_trace_log(int log_level, const char *text, va_list args)
|
||||
{
|
||||
const char *level = "INFO";
|
||||
char message[1024];
|
||||
va_list message_args;
|
||||
|
||||
va_copy(message_args, args);
|
||||
vsnprintf(message, sizeof(message), text, message_args);
|
||||
va_end(message_args);
|
||||
|
||||
switch(log_level) {
|
||||
case LOG_TRACE: level = "TRACE"; break;
|
||||
case LOG_DEBUG: level = "DEBUG"; break;
|
||||
case LOG_INFO: level = "INFO"; break;
|
||||
case LOG_WARNING: level = "WARNING"; break;
|
||||
case LOG_ERROR: level = "ERROR"; break;
|
||||
case LOG_FATAL: level = "FATAL"; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
if(log_level >= LOG_WARNING)
|
||||
windows_remember_error(level, message);
|
||||
|
||||
if(win_log_file != NULL) {
|
||||
fprintf(win_log_file, "[%s] %s\n", level, message);
|
||||
fflush(win_log_file);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
windows_show_startup_error(void)
|
||||
{
|
||||
char dialog[3072];
|
||||
const char *detail = win_recent_errors[0] != '\0' ?
|
||||
win_recent_errors :
|
||||
"No detailed startup error was reported.";
|
||||
const char *hint = "";
|
||||
|
||||
if(windows_text_contains(detail, "OpenGL") ||
|
||||
windows_text_contains(detail, "WGL") ||
|
||||
windows_text_contains(detail, "GLFW")) {
|
||||
hint = "\nThis is usually a graphics driver or virtual GPU problem. "
|
||||
"Update the GPU driver, enable VM 3D acceleration, or install the VM guest graphics driver.\n";
|
||||
}
|
||||
|
||||
snprintf(dialog,
|
||||
sizeof(dialog),
|
||||
"Inner Breeze could not create a window.\n\n%s%s\nA full log was written to inbe.log next to the executable.",
|
||||
detail,
|
||||
hint);
|
||||
|
||||
MessageBoxA(NULL, dialog, "Inner Breeze", MB_OK | MB_ICONERROR);
|
||||
}
|
||||
|
||||
static void
|
||||
windows_install_logger(void)
|
||||
{
|
||||
win_log_file = fopen("inbe.log", "ab");
|
||||
if(win_log_file != NULL)
|
||||
SetTraceLogCallback(windows_trace_log);
|
||||
}
|
||||
|
||||
static void
|
||||
windows_close_logger(void)
|
||||
{
|
||||
if(win_log_file != NULL) {
|
||||
fclose(win_log_file);
|
||||
win_log_file = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
InbeApp* get_global_inbe_app(void) {
|
||||
if (g_inbe_app_ptr == NULL) {
|
||||
TraceLog(LOG_WARNING, "WARNING: get_global_inbe_app called with NULL pointer");
|
||||
@@ -181,13 +50,25 @@ android_clamp_content_size(int size, int leading_inset, int trailing_inset)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(PLATFORM_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID) && !defined(PLATFORM_WEB)
|
||||
static void
|
||||
use_packaged_app_directory(void)
|
||||
{
|
||||
char probe_path[512];
|
||||
const char *app_dir = GetApplicationDirectory();
|
||||
|
||||
if(app_dir == NULL || app_dir[0] == '\0')
|
||||
return;
|
||||
|
||||
snprintf(probe_path, sizeof(probe_path), "%sassets/sounds/bell.ogg", app_dir);
|
||||
if(FileExists(probe_path))
|
||||
ChangeDirectory(app_dir);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
frame(void)
|
||||
{
|
||||
#if defined(PLATFORM_WEB)
|
||||
flint_web_sync_window_size();
|
||||
#endif
|
||||
|
||||
int width = GetScreenWidth();
|
||||
int height = GetScreenHeight();
|
||||
#if !defined(PLATFORM_WEB)
|
||||
@@ -248,25 +129,16 @@ int main(int argc, char **argv) {
|
||||
int window_w = INBE_ANDROID_BUILD ? 0 : config.width;
|
||||
int window_h = INBE_ANDROID_BUILD ? 0 : config.height;
|
||||
|
||||
#if defined(PLATFORM_WEB)
|
||||
flint_web_viewport_size(config.width, config.height, &window_w, &window_h);
|
||||
config.width = window_w;
|
||||
config.height = window_h;
|
||||
#endif
|
||||
|
||||
#if INBE_ANDROID_BUILD
|
||||
__android_log_write(ANDROID_LOG_INFO, "INBE_MAIN", "=== MAIN START ===");
|
||||
#endif
|
||||
|
||||
#if defined(PLATFORM_WEB)
|
||||
SetConfigFlags(flint_web_window_flags());
|
||||
#elif !defined(PLATFORM_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID)
|
||||
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
|
||||
#if !defined(PLATFORM_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID) && !defined(PLATFORM_WEB)
|
||||
use_packaged_app_directory();
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined(__ANDROID__)
|
||||
windows_install_logger();
|
||||
TraceLog(LOG_INFO, "INBE: Windows startup");
|
||||
#if !defined(PLATFORM_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID) && !defined(PLATFORM_WEB)
|
||||
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
|
||||
#endif
|
||||
|
||||
#if INBE_ANDROID_BUILD
|
||||
@@ -283,14 +155,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
|
||||
InitWindow(window_w, window_h, config.title);
|
||||
if(!IsWindowReady()) {
|
||||
TraceLog(LOG_ERROR, "INBE: InitWindow failed");
|
||||
#if defined(_WIN32) && !defined(__ANDROID__)
|
||||
windows_show_startup_error();
|
||||
windows_close_logger();
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
flint_dpi_init();
|
||||
inbe_app_init(&inbe_app);
|
||||
@@ -313,9 +177,6 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
CloseWindow();
|
||||
#if defined(_WIN32) && !defined(__ANDROID__)
|
||||
windows_close_logger();
|
||||
#endif
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -261,6 +261,7 @@ manual_tab_draw(InbeApp *app)
|
||||
y += flint_px(18);
|
||||
{
|
||||
int progressive_speed = app->inbe.progressive_speed;
|
||||
int progressive_start_speed = app->inbe.progressive_start_speed;
|
||||
int toggle_w = flint_px(56);
|
||||
int toggle_h = flint_px(30);
|
||||
flint_text_draw(locale_get("progressive_speed_label"), content_x, y,
|
||||
@@ -274,6 +275,28 @@ manual_tab_draw(InbeApp *app)
|
||||
app->settings_dirty = 1;
|
||||
}
|
||||
y += toggle_h + flint_px(20);
|
||||
if(app->inbe.progressive_speed) {
|
||||
int max_speed = app->inbe.speed_level;
|
||||
int modify_w = flint_text_measure(locale_get("modify_start_speed_button"), flint_ui_font()) + flint_px(24);
|
||||
int modify_h = flint_px(36);
|
||||
int modify_hover = 0;
|
||||
if(modify_w > content_w)
|
||||
modify_w = content_w;
|
||||
|
||||
if(progressive_start_speed != clampi(progressive_start_speed, SETTINGS_SPEED_MIN, max_speed)) {
|
||||
app->inbe.progressive_start_speed = clampi(progressive_start_speed, SETTINGS_SPEED_MIN, max_speed);
|
||||
app->settings_preview.progressive_start_speed = app->inbe.progressive_start_speed;
|
||||
app->settings_dirty = 1;
|
||||
}
|
||||
|
||||
if(ui_draw_generic_button(content_x, y, modify_w, modify_h,
|
||||
locale_get("modify_start_speed_button"),
|
||||
UI_BUTTON_STYLE_SECONDARY, &modify_hover)) {
|
||||
app->modal.active = 1;
|
||||
app->modal.type = UIModalEditProgressiveStartSpeed;
|
||||
app->modal.selected_button = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if(step == 3) {
|
||||
int speed = app->inbe.speed_level;
|
||||
@@ -374,6 +397,10 @@ manual_tab_draw(InbeApp *app)
|
||||
}
|
||||
}
|
||||
|
||||
if(app->modal.active && app->modal.type == UIModalEditProgressiveStartSpeed) {
|
||||
settings_draw_progressive_start_speed_editor(app);
|
||||
}
|
||||
|
||||
if(IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) {
|
||||
app->settings_drag_slider = 0;
|
||||
if(app->settings_dirty)
|
||||
|
||||
+9
-17
@@ -192,17 +192,11 @@ settings_draw_exact_speed_preview(Inbe *preview, int *preview_speed,
|
||||
if(preview == NULL || preview_speed == NULL)
|
||||
return;
|
||||
|
||||
if(preview->phase != InbePhaseBreathe) {
|
||||
if(*preview_speed != speed || preview->phase != InbePhaseBreathe) {
|
||||
inbeinit(preview);
|
||||
apply_settings(preview, speed, max_rounds, max_breaths, pause_seconds);
|
||||
preview->progressive_speed = 0;
|
||||
session_reset_round_breathe(preview);
|
||||
} else if(*preview_speed != speed) {
|
||||
apply_settings(preview, speed, max_rounds, max_breaths, pause_seconds);
|
||||
preview->progressive_speed = 0;
|
||||
}
|
||||
|
||||
if(*preview_speed != speed) {
|
||||
*preview_speed = speed;
|
||||
}
|
||||
|
||||
@@ -267,6 +261,7 @@ settings_draw_progressive_start_speed_editor(InbeApp *app)
|
||||
modal_w - flint_px(48), locale_get("progressive_start_speed_label"),
|
||||
SETTINGS_SPEED_MIN, max_speed, &start_speed, "")) {
|
||||
app->inbe.progressive_start_speed = start_speed;
|
||||
app->start_speed_preview_speed = 0;
|
||||
app->settings_dirty = 1;
|
||||
}
|
||||
}
|
||||
@@ -950,23 +945,20 @@ settings_tab_draw(InbeApp *app)
|
||||
int icon_padding = flint_px(4);
|
||||
int icon_spacing = flint_px(20);
|
||||
int icon_btn_w = icon_size + icon_padding * 2;
|
||||
int link_count = 4;
|
||||
int max_columns = 4;
|
||||
int total_w = icon_btn_w * max_columns + icon_spacing * (max_columns - 1);
|
||||
int columns = total_w <= content_w ? max_columns : 2;
|
||||
int total_w = icon_btn_w * 3 + icon_spacing * 2;
|
||||
int columns = total_w <= content_w ? 3 : 2;
|
||||
int grid_w = icon_btn_w * columns + icon_spacing * (columns - 1);
|
||||
int links_start_x = content_x + (content_w - grid_w) / 2;
|
||||
int row_spacing = flint_px(16);
|
||||
Texture2D icons[4] = {app->discord_icon, app->telegram_icon, app->btc_icon, app->monero_icon};
|
||||
UIIconType icon_types[4] = {UI_ICON_TYPE_NONE, UI_ICON_TYPE_TELEGRAM, UI_ICON_TYPE_BTC, UI_ICON_TYPE_MONERO};
|
||||
const char *urls[4] = {
|
||||
"https://discord.com/invite/JbGZ4yENDt",
|
||||
Texture2D icons[3] = {app->discord_icon, app->telegram_icon, app->monero_icon};
|
||||
UIIconType icon_types[3] = {UI_ICON_TYPE_NONE, UI_ICON_TYPE_TELEGRAM, UI_ICON_TYPE_MONERO};
|
||||
const char *urls[3] = {
|
||||
"https://discord.gg/JbGZ4yENDt",
|
||||
"https://t.me/lotusinbe",
|
||||
"https://trocador.app/en/anonpay/?ticker_to=btc&network_to=Mainnet&address=bc1qxzcetg50f6epgddc09n82xqn3zswlmk44235y5&donation=True&simple_mode=True&amount=0.001&name=Inner+Breeze&[email protected]&ticker_from=btc&network_from=Mainnet&buttonbgcolor=445588&textcolor=ffffff&bgcolor=eaeaffff",
|
||||
"https://trocador.app/en/anonpay/?ticker_to=xmr&network_to=Mainnet&address=86CbC3d4a2GhT9auh6X99JhmhTMFKVVk8Q9cLrKTHkBu8LLkoNWgkBeAT3YZrvDM6NczYe8brUJNsTiFmwpWDZYnFG5kzSH&donation=True&simple_mode=True&amount=0.1&name=Inner+Breeze&[email protected]&ticker_from=xmr&network_from=Mainnet&buttonbgcolor=445588&textcolor=ffffff&bgcolor=eaeaffff"
|
||||
};
|
||||
|
||||
for(int i = 0; i < link_count; i++) {
|
||||
for(int i = 0; i < 3; i++) {
|
||||
int col = i % columns;
|
||||
int row = i / columns;
|
||||
int icon_x = links_start_x + col * (icon_btn_w + icon_spacing) + icon_padding;
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
#define INBE_VERSION_MAJOR 1
|
||||
#define INBE_VERSION_MINOR 2
|
||||
#define INBE_VERSION_PATCH 6
|
||||
#define INBE_VERSION_STRING "1.2.6"
|
||||
#define INBE_VERSION_PATCH 4
|
||||
#define INBE_VERSION_STRING "1.2.4"
|
||||
|
||||
#endif
|
||||
+6
-8
@@ -25,7 +25,6 @@
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#status,
|
||||
@@ -35,8 +34,7 @@
|
||||
|
||||
.canvas-stage {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -47,9 +45,8 @@
|
||||
}
|
||||
|
||||
.canvas-frame {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
width: min(100vw, calc(100vh * 4 / 7));
|
||||
aspect-ratio: 4 / 7;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -66,8 +63,9 @@
|
||||
|
||||
.canvas-frame:fullscreen,
|
||||
.canvas-frame:-webkit-full-screen {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
width: min(100vw, calc(100vh * 4 / 7));
|
||||
height: min(100vh, calc(100vw * 7 / 4));
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -0,0 +1,612 @@
|
||||
@font-face {
|
||||
font-family: departure;
|
||||
src: url('/web-assets/fonts/DepartureMono-Regular.otf');
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--page-bg: #000000;
|
||||
--page-tile: url('/web-assets/icons/tile2.png');
|
||||
--page-tile-opacity: 0.32;
|
||||
--panel-bg: #E2EEFC;
|
||||
--dark: #24487C;
|
||||
--shadow: #000000;
|
||||
--light: #ffffff;
|
||||
--button-bg: #A6CFF2;
|
||||
--button-highlight: #ffffff;
|
||||
--button-inset: #ffffff;
|
||||
--link: #4A90E2;
|
||||
--link-hover: #689ED7;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--page-bg);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
cursor: url('/web-assets/cursors/arrow.png') 0 0, auto;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
background-image: var(--page-tile);
|
||||
background-repeat: repeat;
|
||||
background-size: 128px 128px;
|
||||
image-rendering: pixelated;
|
||||
opacity: var(--page-tile-opacity);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
line-height: calc(1ex / 0.32);
|
||||
margin: 16px auto;
|
||||
padding: 16px 32px;
|
||||
font-family: departure;
|
||||
font-size: 16px;
|
||||
background-color: var(--panel-bg);
|
||||
max-width: 1028px;
|
||||
box-sizing: border-box;
|
||||
border: 2px solid var(--dark);
|
||||
box-shadow:
|
||||
inset 2px 2px 0 0 var(--dark),
|
||||
2px 2px 0 0 var(--light);
|
||||
}
|
||||
|
||||
.hero {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero img {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
section {
|
||||
margin-bottom: 80px;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.hero .tk-img {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.version {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: var(--dark);
|
||||
margin: 8px 0 16px 0;
|
||||
opacity: 0.7;
|
||||
font-family: departure;
|
||||
}
|
||||
|
||||
.tk-img {
|
||||
border: 2px solid var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
inset 1px 1px 0 0 var(--shadow),
|
||||
1px 1px 0 0 var(--button-highlight);
|
||||
}
|
||||
|
||||
a {
|
||||
font-family: departure;
|
||||
color: var(--link);
|
||||
text-decoration: none;
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
|
||||
button {
|
||||
display: inline-block;
|
||||
color: #000000;
|
||||
font-family: departure;
|
||||
font-size: 14px;
|
||||
padding: 6px 12px;
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
outline: none;
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--button-highlight);
|
||||
border-right-color: var(--dark);
|
||||
border-bottom-color: var(--dark);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
}
|
||||
|
||||
button:active {
|
||||
border-color: var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--button-highlight),
|
||||
inset 1px 1px 0 0 var(--shadow);
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
font-family: departure;
|
||||
font-size: 14px;
|
||||
padding: 6px 8px;
|
||||
outline: none;
|
||||
border: 2px solid var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
inset 1px 1px 0 0 var(--shadow),
|
||||
1px 1px 0 0 var(--button-highlight);
|
||||
cursor: url('/web-assets/cursors/reading.png') 8 8, text;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
display: block;
|
||||
margin: 8px 0 16px 0;
|
||||
font-family: departure;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.converter-panel {
|
||||
margin: 24px 0;
|
||||
padding: 16px;
|
||||
background-color: #d7e8fa;
|
||||
border: 2px solid var(--dark);
|
||||
box-shadow:
|
||||
inset 1px 1px 0 0 var(--light),
|
||||
1px 1px 0 0 var(--button-highlight);
|
||||
}
|
||||
|
||||
.converter-panel label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
.converter-status {
|
||||
margin: 16px 0 0 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.converter-status.error {
|
||||
color: #9b1c1c;
|
||||
}
|
||||
|
||||
.platform-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.platform-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 16px 12px;
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--button-highlight);
|
||||
border-right-color: var(--dark);
|
||||
border-bottom-color: var(--dark);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
text-decoration: none;
|
||||
color: var(--dark);
|
||||
border-radius: 8px;
|
||||
transition: transform 0.1s, box-shadow 0.1s;
|
||||
width: 110px;
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
}
|
||||
|
||||
.platform-btn img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.platform-btn span {
|
||||
font-family: departure;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.platform-btn:active {
|
||||
border-color: var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--button-highlight),
|
||||
inset 1px 1px 0 0 var(--shadow);
|
||||
transform: translate(1px, 1px);
|
||||
}
|
||||
|
||||
.platform-btn.web:hover {
|
||||
background-color: #ddeeff;
|
||||
}
|
||||
|
||||
.platform-btn.android:hover {
|
||||
background-color: #ddffdd;
|
||||
}
|
||||
|
||||
.platform-btn.windows:hover {
|
||||
background-color: #ffdddd;
|
||||
}
|
||||
|
||||
.platform-btn.linux:hover {
|
||||
background-color: #ffffdd;
|
||||
}
|
||||
|
||||
.platform-section {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.platform-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.platform-header img {
|
||||
flex: 0 0 48px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.platform-header p {
|
||||
margin: 4px 0 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.platform-header strong {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.downloads-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.download-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--button-highlight);
|
||||
border-right-color: var(--dark);
|
||||
border-bottom-color: var(--dark);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
text-decoration: none;
|
||||
color: var(--dark);
|
||||
border-radius: 8px;
|
||||
transition: transform 0.1s, box-shadow 0.1s;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
min-height: 40px;
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
}
|
||||
|
||||
.download-item:active {
|
||||
border-color: var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--button-highlight),
|
||||
inset 1px 1px 0 0 var(--shadow);
|
||||
transform: translate(1px, 1px);
|
||||
}
|
||||
|
||||
.download-item:hover {
|
||||
background-color: var(--button-highlight);
|
||||
}
|
||||
|
||||
details {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.donation-buttons {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Uxn emulator styles */
|
||||
#display {
|
||||
image-rendering: pixelated;
|
||||
image-rendering: crisp-edges;
|
||||
touch-action: none;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
cursor: none;
|
||||
}
|
||||
|
||||
#metadata {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
#metadata ul {
|
||||
margin-left: 25px;
|
||||
padding: 0;
|
||||
float: left;
|
||||
line-height: 24px;
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
|
||||
#metadata ul li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#metadata button {
|
||||
display: inline-block;
|
||||
border: 0;
|
||||
font-size: 12px;
|
||||
border-radius: 30px;
|
||||
padding: 2px 10px;
|
||||
line-height: 20px;
|
||||
margin-bottom: 1px;
|
||||
vertical-align: center;
|
||||
}
|
||||
|
||||
#metadata kbd {
|
||||
border: 0;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
padding: 2px 2px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
#console {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#console > * {
|
||||
border: 0;
|
||||
font-family: mono;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.noscript {
|
||||
display: block;
|
||||
padding: 15px;
|
||||
margin: 30px auto;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
div.noscript img {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
div.noscript a {
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Features section styling - retro tk look */
|
||||
.features-section {
|
||||
margin: 32px 0;
|
||||
}
|
||||
|
||||
.features-section h2 {
|
||||
margin-bottom: 16px;
|
||||
color: var(--dark);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
padding: 12px;
|
||||
background-color: var(--panel-bg);
|
||||
border: 2px solid var(--button-highlight);
|
||||
border-right-color: var(--dark);
|
||||
border-bottom-color: var(--dark);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
font-family: departure;
|
||||
}
|
||||
|
||||
.feature-item h3 {
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 14px;
|
||||
color: var(--dark);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.feature-item p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.3;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
/* About section - retro tk look */
|
||||
.about-section {
|
||||
margin: 32px 0;
|
||||
}
|
||||
|
||||
.about-section h2 {
|
||||
margin-bottom: 12px;
|
||||
color: var(--dark);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.about-section p {
|
||||
margin: 12px 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.benefits-list {
|
||||
padding-left: 20px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.benefits-list li {
|
||||
margin-bottom: 6px;
|
||||
line-height: 1.3;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.safety-note {
|
||||
font-size: 12px;
|
||||
opacity: 0.7;
|
||||
margin-top: 12px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Info section with dropdowns - retro tk look */
|
||||
.info-section {
|
||||
margin: 32px 0;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.dropdown summary {
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
font-weight: bold;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--button-highlight);
|
||||
border-right-color: var(--dark);
|
||||
border-bottom-color: var(--dark);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
font-family: departure;
|
||||
}
|
||||
|
||||
.dropdown[open] summary {
|
||||
border-color: var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--button-highlight),
|
||||
inset 1px 1px 0 0 var(--shadow);
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
padding: 12px;
|
||||
background-color: var(--panel-bg);
|
||||
border: 2px solid var(--dark);
|
||||
border-right-color: var(--button-highlight);
|
||||
border-bottom-color: var(--button-highlight);
|
||||
margin-top: 8px;
|
||||
box-shadow:
|
||||
1px 1px 0 0 var(--shadow),
|
||||
inset 1px 1px 0 0 var(--button-inset);
|
||||
}
|
||||
|
||||
.dropdown-content p {
|
||||
margin-bottom: 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.dropdown-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.dropdown-links a {
|
||||
color: var(--link);
|
||||
text-decoration: none;
|
||||
padding: 6px 12px;
|
||||
background-color: var(--button-bg);
|
||||
border: 1px solid var(--dark);
|
||||
font-family: departure;
|
||||
font-size: 13px;
|
||||
cursor: url('/web-assets/cursors/sight.png') 0 0, pointer;
|
||||
}
|
||||
|
||||
.dropdown-links a:hover {
|
||||
background-color: var(--button-highlight);
|
||||
}
|
||||
|
||||
section h2 {
|
||||
margin-top: 32px;
|
||||
margin-bottom: 16px;
|
||||
color: var(--dark);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
section ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
section ul li {
|
||||
margin-bottom: 8px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* Improved responsive design */
|
||||
@media (max-width: 768px) {
|
||||
.content {
|
||||
padding: 12px 16px;
|
||||
margin: 8px auto;
|
||||
}
|
||||
|
||||
.platform-buttons {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.platform-btn {
|
||||
width: 100px;
|
||||
padding: 12px 8px;
|
||||
}
|
||||
|
||||
.features-list li {
|
||||
padding: 10px 12px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Lotus theme: inbe
|
||||
background "#E2EEFCFF"
|
||||
text "#24487CFF"
|
||||
circle "#7EB7E6FF"
|
||||
button "#A6CFF2FF"
|
||||
button_hover "#689ED7FF"
|
||||
icon "#24487CFF"
|
||||
+18
-9
@@ -6,7 +6,6 @@ set -e
|
||||
|
||||
CHANGELOG_FILE="CHANGELOG.md"
|
||||
GRADLE_FILE="droid/app/build.gradle"
|
||||
WINDOWS_RC_FILE="windows/inbe.rc"
|
||||
CHANGELOG_DIR="fastlane/metadata/android/en-US/changelogs"
|
||||
|
||||
# Extract all versions from CHANGELOG
|
||||
@@ -55,15 +54,25 @@ sed -i "s/^#define INBE_VERSION_STRING .*/#define INBE_VERSION_STRING \"$LATEST_
|
||||
|
||||
echo "✓ Updated $VERSION_H_FILE"
|
||||
|
||||
if [ -f "$WINDOWS_RC_FILE" ]; then
|
||||
WINDOWS_VERSION="$MAJOR,$MINOR,$PATCH,0"
|
||||
sed -i "s/^ FILEVERSION .*/ FILEVERSION $WINDOWS_VERSION/" "$WINDOWS_RC_FILE"
|
||||
sed -i "s/^ PRODUCTVERSION .*/ PRODUCTVERSION $WINDOWS_VERSION/" "$WINDOWS_RC_FILE"
|
||||
sed -i "s/^\([[:space:]]*VALUE \"FileVersion\", \).*/\1\"$LATEST_VERSION\"/" "$WINDOWS_RC_FILE"
|
||||
sed -i "s/^\([[:space:]]*VALUE \"ProductVersion\", \).*/\1\"$LATEST_VERSION\"/" "$WINDOWS_RC_FILE"
|
||||
echo "✓ Updated $WINDOWS_RC_FILE"
|
||||
update_website_version_in_file() {
|
||||
local file="$1"
|
||||
|
||||
sed -i "s|VERSION_PLACEHOLDER|$LATEST_VERSION|g" "$file"
|
||||
sed -i -E "s|(<p[[:space:]]+class=\"version\">)[^<]*(</p>)|\\1$LATEST_VERSION\\2|g" "$file"
|
||||
}
|
||||
|
||||
if [ -f "index.html" ]; then
|
||||
update_website_version_in_file index.html
|
||||
echo "✓ Updated index.html"
|
||||
else
|
||||
echo "Warning: $WINDOWS_RC_FILE not found"
|
||||
echo "Warning: index.html not found"
|
||||
fi
|
||||
|
||||
if [ -f "builds.html" ]; then
|
||||
update_website_version_in_file builds.html
|
||||
echo "✓ Updated builds.html"
|
||||
else
|
||||
echo "builds.html not found, skipping"
|
||||
fi
|
||||
|
||||
# Create changelog directory
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/flint updated: c33479f1fe...407d5ab660.
Binary file not shown.
|
Before Width: | Height: | Size: 417 KiB |
@@ -1,35 +0,0 @@
|
||||
#include <windows.h>
|
||||
|
||||
IDI_APP_ICON ICON "inbe.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,2,6,0
|
||||
PRODUCTVERSION 1,2,6,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "waozi"
|
||||
VALUE "FileDescription", "Inner Breeze"
|
||||
VALUE "FileVersion", "1.2.6"
|
||||
VALUE "InternalName", "inbe"
|
||||
VALUE "OriginalFilename", "inbe-windows-x86_64.exe"
|
||||
VALUE "ProductName", "Inner Breeze"
|
||||
VALUE "ProductVersion", "1.2.6"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
Reference in new issue
Block a user