Fix ZIP import replacement and web scaling
This commit is contained in:
1 parent
1be4050ab0
commit
fa561e338c
26 files changed
+178
-1491
No files matched your search
@@ -43,7 +43,7 @@ jobs:
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
|
||||
run: |
|
||||
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
|
||||
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/flint-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/inbe-release.keystore" \
|
||||
-Pkeystore.path="/home/runner/.android/flint-release.keystore" \
|
||||
--stacktrace
|
||||
|
||||
- name: Rename APK
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
# 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
|
||||
|
||||
-72
@@ -1,72 +0,0 @@
|
||||
<!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,7 +18,8 @@ android {
|
||||
keystoreProps.load(new FileInputStream(keystorePropsFile))
|
||||
}
|
||||
|
||||
def getKeystorePath = { -> keystoreProps['keystore.path'] ?: System.getenv("HOME") + "/.android/inbe-release.keystore" }
|
||||
def getKeystorePath = { -> keystoreProps['keystore.path'] ?: System.getenv("HOME") + "/.android/flint-release.keystore" }
|
||||
def getKeystoreAlias = { -> keystoreProps['keystore.alias'] ?: "inbe-key" }
|
||||
|
||||
def releasePassword = project.findProperty('keystore.password') ?: ""
|
||||
|
||||
@@ -26,7 +27,7 @@ android {
|
||||
release {
|
||||
storeFile getKeystorePath() ? file(getKeystorePath()) : null
|
||||
storePassword releasePassword
|
||||
keyAlias "inbe-key"
|
||||
keyAlias getKeystoreAlias()
|
||||
keyPassword releasePassword
|
||||
}
|
||||
}
|
||||
@@ -34,8 +35,8 @@ android {
|
||||
defaultConfig {
|
||||
minSdk 19
|
||||
targetSdk 35
|
||||
versionCode 26
|
||||
versionName "1.2.5"
|
||||
versionCode 27
|
||||
versionName "1.2.6"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
### Fixed
|
||||
- Import now replaces only matching session files from the ZIP and never removes local sessions missing from the import.
|
||||
- Fixed web scaling behavior.
|
||||
+2
-9
@@ -20,7 +20,6 @@ app = [
|
||||
"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",
|
||||
@@ -74,11 +73,5 @@ sources = [
|
||||
"src/android/android_wakelock.c",
|
||||
"src/android/android_timer.c"
|
||||
]
|
||||
|
||||
[dist.itch]
|
||||
user = "waozi"
|
||||
game = "inbe"
|
||||
web_channel = "html5"
|
||||
windows_channel = "windows"
|
||||
linux_channel = "linux"
|
||||
android_channel = "android"
|
||||
keystore = "flint-release.keystore"
|
||||
key_alias = "inbe-key"
|
||||
-204
@@ -1,204 +0,0 @@
|
||||
<!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.5</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>
|
||||
@@ -1,287 +0,0 @@
|
||||
<!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>
|
||||
@@ -64,6 +64,9 @@ Round %d %ds
|
||||
[starting_in]
|
||||
STARTING IN %2d
|
||||
---
|
||||
[session_round_label]
|
||||
ROUND %d
|
||||
---
|
||||
[settings_title]
|
||||
Settings
|
||||
---
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
<!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>
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
#!/usr/bin/env 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"
|
||||
if [ "${PACKAGE_ONLY:-0}" != "1" ]; then
|
||||
rm -f "$SITE_DIR/inbe.tar.gz"
|
||||
fi
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
# Base site files. Keep this as an allowlist so source/build inputs never leak
|
||||
# into the published archive.
|
||||
for site_file in \
|
||||
index.html \
|
||||
builds.html \
|
||||
privacy.html \
|
||||
legacy-converter.html \
|
||||
style.css \
|
||||
og.png \
|
||||
og.jpg \
|
||||
sitemap.xml \
|
||||
robots.txt \
|
||||
manifest.json; do
|
||||
[ -f "$site_file" ] && cp "$site_file" "$TMPDIR/"
|
||||
done
|
||||
|
||||
[ -d "web-assets" ] && rsync -a web-assets/ "$TMPDIR/web-assets/"
|
||||
|
||||
mkdir -p "$TMPDIR/uxn/devices"
|
||||
[ -f "uxn/index.html" ] && cp uxn/index.html "$TMPDIR/uxn/"
|
||||
[ -f "uxn/inbe.rom" ] && cp uxn/inbe.rom "$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/bin/linux" ] || [ -d "build/dist/linux" ]; then
|
||||
for raylib_linux_artifact in build/bin/linux/inbe-linux-* build/dist/linux/inbe-linux.tar.gz; do
|
||||
[ -f "$raylib_linux_artifact" ] && cp "$raylib_linux_artifact" "$TMPDIR/build/linux/"
|
||||
done
|
||||
fi
|
||||
if [ -d "build/bin/windows" ] || [ -d "build/dist/windows" ]; then
|
||||
for raylib_windows_artifact in build/bin/windows/inbe-windows-*.exe build/dist/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/inbe-*.apk build/android/inbe-latest.apk build/android/app-universal-release.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
|
||||
[ -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"
|
||||
[ -f "build/android/inbe-latest.apk" ] && cp build/android/inbe-latest.apk "$TMPDIR/droid/app-release.apk"
|
||||
|
||||
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
|
||||
|
||||
if [ "${PACKAGE_ONLY:-0}" = "1" ]; then
|
||||
echo "✓ Package created at $SITE_DIR/inbe.tar.gz"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
hut pages publish -d inbe.waozi.xyz "$SITE_DIR/inbe.tar.gz"
|
||||
echo "✓ Published to https://inbe.waozi.xyz"
|
||||
|
||||
echo "✓ Done"
|
||||
@@ -1,4 +0,0 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://inbe.waozi.xyz/sitemap.xml
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
<?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>
|
||||
@@ -562,6 +562,33 @@ draw_session_status(InbeApp *app, int center_x, int center_y)
|
||||
flint_text_draw(text, center_x - max_text_w / 2, text_y, font, c_text);
|
||||
}
|
||||
|
||||
static void
|
||||
draw_session_round_label(InbeApp *app)
|
||||
{
|
||||
char text[32];
|
||||
char max_text[32];
|
||||
int max_text_w;
|
||||
int top_bar_left;
|
||||
int top_bar_right;
|
||||
int text_x;
|
||||
int text_y;
|
||||
int font = flint_px(16);
|
||||
|
||||
if(app->inbe.phase != InbePhaseBreathe)
|
||||
return;
|
||||
|
||||
locale_format(max_text, sizeof(max_text), "session_round_label", MaxRounds);
|
||||
max_text_w = flint_text_measure(max_text, font);
|
||||
locale_format(text, sizeof(text), "session_round_label", app->inbe.round + 1);
|
||||
|
||||
top_bar_left = flint_px(12) + flint_px(24) + flint_px(10) * 2;
|
||||
top_bar_right = view_width - flint_px(56);
|
||||
text_x = top_bar_left + (top_bar_right - top_bar_left - max_text_w) / 2;
|
||||
text_y = flint_ui_text_y(text, flint_px(12), flint_px(24) + flint_px(10) * 2, font);
|
||||
|
||||
flint_text_draw(text, text_x, text_y, font, c_text);
|
||||
}
|
||||
|
||||
void
|
||||
draw_preview_inbe(Inbe *inbe, int center_x, int center_y)
|
||||
{
|
||||
@@ -748,6 +775,7 @@ session_update_screen(InbeApp *app, int center_x, int center_y, int *hover)
|
||||
}
|
||||
|
||||
draw_session_status(app, center_x, center_y);
|
||||
draw_session_round_label(app);
|
||||
|
||||
if(!app->session_paused) {
|
||||
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID)
|
||||
|
||||
+100
-31
@@ -844,6 +844,9 @@ 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;
|
||||
@@ -858,14 +861,14 @@ parse_session_path(const char *zip_path, int *year, int *month, int *day, char *
|
||||
}
|
||||
|
||||
static int
|
||||
validate_session_content(const char *content, int *round_count)
|
||||
parse_session_content(const char *content, int *round_times, int max_rounds, int *round_count)
|
||||
{
|
||||
char *dup;
|
||||
char *line;
|
||||
int count = 0;
|
||||
int valid = 1;
|
||||
|
||||
if(content == NULL || round_count == NULL)
|
||||
if(content == NULL || round_times == NULL || round_count == NULL || max_rounds <= 0)
|
||||
return 0;
|
||||
|
||||
dup = strdup(content);
|
||||
@@ -880,8 +883,8 @@ validate_session_content(const char *content, int *round_count)
|
||||
|
||||
if(*line != '\0') {
|
||||
int seconds = atoi(line);
|
||||
if(seconds > 0 && seconds <= 999) {
|
||||
count++;
|
||||
if(seconds > 0 && seconds <= 999 && count < max_rounds) {
|
||||
round_times[count++] = seconds;
|
||||
} else {
|
||||
valid = 0;
|
||||
break;
|
||||
@@ -902,33 +905,66 @@ validate_session_content(const char *content, int *round_count)
|
||||
}
|
||||
|
||||
static int
|
||||
import_session_file(const char *zip_path, const char *local_path, mz_zip_archive *archive)
|
||||
write_session_content_atomic(const char *path, const int *round_times, int round_count)
|
||||
{
|
||||
char *content = NULL;
|
||||
size_t size;
|
||||
char temp_path[FS_PATH_MAX];
|
||||
char text[MaxRounds * 8];
|
||||
int offset = 0;
|
||||
FILE *fp;
|
||||
int round_count;
|
||||
|
||||
if(zip_path == NULL || local_path == NULL || archive == NULL)
|
||||
if(path == NULL || path[0] == '\0' || round_times == NULL || round_count <= 0 || round_count > MaxRounds)
|
||||
return 0;
|
||||
|
||||
// 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);
|
||||
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);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Validate session content
|
||||
if(!validate_session_content(content, &round_count)) {
|
||||
TraceLog(LOG_WARNING, "DATA: invalid session content: %s", zip_path);
|
||||
free(content);
|
||||
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);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Create directory structure if needed
|
||||
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)
|
||||
{
|
||||
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';
|
||||
|
||||
@@ -937,30 +973,63 @@ import_session_file(const char *zip_path, const char *local_path, mz_zip_archive
|
||||
*last_slash = '\0';
|
||||
if(!ensure_dir(dir_path)) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to create directory: %s", dir_path);
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 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 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;
|
||||
}
|
||||
|
||||
if(fwrite(content, 1, size, fp) != size) {
|
||||
TraceLog(LOG_ERROR, "DATA: failed to write session file: %s", local_path);
|
||||
fclose(fp);
|
||||
import_text = malloc(size + 1);
|
||||
if(import_text == NULL) {
|
||||
free(content);
|
||||
return 0;
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
memcpy(import_text, content, size);
|
||||
import_text[size] = '\0';
|
||||
free(content);
|
||||
|
||||
TraceLog(LOG_INFO, "DATA: imported session: %s (%d rounds)", local_path, round_count);
|
||||
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);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+14
-1
@@ -1,6 +1,7 @@
|
||||
#include "raylib.h"
|
||||
#include "app.h"
|
||||
#include "flint_dpi.h"
|
||||
#include "flint_web.h"
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
@@ -183,6 +184,10 @@ android_clamp_content_size(int size, int leading_inset, int trailing_inset)
|
||||
static void
|
||||
frame(void)
|
||||
{
|
||||
#if defined(PLATFORM_WEB)
|
||||
flint_web_sync_window_size();
|
||||
#endif
|
||||
|
||||
int width = GetScreenWidth();
|
||||
int height = GetScreenHeight();
|
||||
#if !defined(PLATFORM_WEB)
|
||||
@@ -243,11 +248,19 @@ 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_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID) && !defined(PLATFORM_WEB)
|
||||
#if defined(PLATFORM_WEB)
|
||||
SetConfigFlags(flint_web_window_flags());
|
||||
#elif !defined(PLATFORM_ANDROID) && !defined(__ANDROID__) && !defined(ANDROID)
|
||||
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -960,7 +960,7 @@ settings_tab_draw(InbeApp *app)
|
||||
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.gg/JbGZ4yENDt",
|
||||
"https://discord.com/invite/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"
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
#define INBE_VERSION_MAJOR 1
|
||||
#define INBE_VERSION_MINOR 2
|
||||
#define INBE_VERSION_PATCH 5
|
||||
#define INBE_VERSION_STRING "1.2.5"
|
||||
#define INBE_VERSION_PATCH 6
|
||||
#define INBE_VERSION_STRING "1.2.6"
|
||||
|
||||
#endif
|
||||
+8
-6
@@ -25,6 +25,7 @@
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#status,
|
||||
@@ -34,7 +35,8 @@
|
||||
|
||||
.canvas-stage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -45,8 +47,9 @@
|
||||
}
|
||||
|
||||
.canvas-frame {
|
||||
width: min(100vw, calc(100vh * 4 / 7));
|
||||
aspect-ratio: 4 / 7;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -63,9 +66,8 @@
|
||||
|
||||
.canvas-frame:fullscreen,
|
||||
.canvas-frame:-webkit-full-screen {
|
||||
width: min(100vw, calc(100vh * 4 / 7));
|
||||
height: min(100vh, calc(100vw * 7 / 4));
|
||||
margin: auto;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -1,612 +0,0 @@
|
||||
@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;
|
||||
}
|
||||
}
|
||||
@@ -66,27 +66,6 @@ else
|
||||
echo "Warning: $WINDOWS_RC_FILE not found"
|
||||
fi
|
||||
|
||||
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: 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
|
||||
mkdir -p "$CHANGELOG_DIR"
|
||||
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/flint updated: 8f6975cb47...288b28172d.
+4
-4
@@ -3,8 +3,8 @@
|
||||
IDI_APP_ICON ICON "inbe.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,2,5,0
|
||||
PRODUCTVERSION 1,2,5,0
|
||||
FILEVERSION 1,2,6,0
|
||||
PRODUCTVERSION 1,2,6,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@@ -21,11 +21,11 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "waozi"
|
||||
VALUE "FileDescription", "Inner Breeze"
|
||||
VALUE "FileVersion", "1.2.5"
|
||||
VALUE "FileVersion", "1.2.6"
|
||||
VALUE "InternalName", "inbe"
|
||||
VALUE "OriginalFilename", "inbe-windows-x86_64.exe"
|
||||
VALUE "ProductName", "Inner Breeze"
|
||||
VALUE "ProductVersion", "1.2.5"
|
||||
VALUE "ProductVersion", "1.2.6"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Reference in new issue
Block a user