Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c801c62542 | ||
|
|
7601d7c58c | ||
|
|
47d77ab0ad |
No files matched your search
@@ -23,9 +23,9 @@ first.
|
||||
- Never commit, print or log a real master password, Auth secret, otpauth
|
||||
link, export file or current code. Tests use fixture values only, such as
|
||||
the RFC 6238 keys.
|
||||
- Keep Pass's on-disk formats and the Android package `xyz.waozi.pass`:
|
||||
existing installations update in place and keep their saved master
|
||||
password. `src/migrate.zi` moves Pass's old files once; keep it.
|
||||
- Keep Pass's on-disk formats and `src/migrate.zi`. The owner changed the
|
||||
Android package to `xyz.waozi.werk` on 2026-10-23. Werkzeug installs
|
||||
separately from legacy `xyz.waozi.pass`; never clear the legacy app's data.
|
||||
- Every file Werkzeug writes is private (0600 in 0700 folders).
|
||||
|
||||
## Platforms and tests
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## [0.4.3] - 2026-10-23
|
||||
|
||||
- Werkzeug uses its own Android application ID, `xyz.waozi.werk`.
|
||||
- Werkzeug installs alongside legacy Pass, preserving the older app and its data.
|
||||
|
||||
## [0.4.2] - 2026-10-23
|
||||
|
||||
- Linux packages include the libraries needed for sync and importing QR-code pictures.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
.DEFAULT_GOAL := all
|
||||
ZIRAN ?= ./scripts/ziran.sh
|
||||
# Gradle invokes make again for portable bundles. Inherited environment
|
||||
# variables otherwise export these shell-derived paths while resolving them.
|
||||
unexport ZIRAN_ROOT KRYON_DIR RAYLIB_DIR MINGCUTE_DIR LIBOQS_DIR MONOCYPHER_DIR QRCODE_DIR WORKBOOK_DIR ENTITY_DIR APPS_DIR
|
||||
# Local overrides refer to the real root repositories. Published builds
|
||||
# require the exact versions recorded in the committed lock.
|
||||
LOCK_FLAGS := $(if $(wildcard ziran.local.toml),,--locked)
|
||||
|
||||
@@ -1 +1 @@
|
||||
8c5806d7ff5a4fdaf6b98a7668acbf0aad236ece1d5e68ffe1f7b268a1afb077
|
||||
dfc835742d58dc714e175e5adde718c58d51b4132ab80bdb7983eb2985734932
|
||||
@@ -3,7 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'xyz.waozi.pass'
|
||||
namespace 'xyz.waozi.werk'
|
||||
compileSdk 36
|
||||
ndkVersion "28.2.13676358"
|
||||
|
||||
@@ -40,11 +40,11 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId 'xyz.waozi.pass'
|
||||
applicationId 'xyz.waozi.werk'
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
versionCode 16
|
||||
versionName "0.4.2"
|
||||
versionCode 17
|
||||
versionName "0.4.3"
|
||||
// Default to the two realistic phone targets; override with
|
||||
// -Pabi=x86_64 etc. for emulator builds.
|
||||
def abis = project.findProperty('abi') ?: 'armeabi-v7a,arm64-v8a'
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
- Werkzeug uses its own Android application ID, `xyz.waozi.werk`.
|
||||
- Werkzeug installs alongside legacy Pass, preserving the older app and its data.
|
||||
@@ -11,5 +11,5 @@
|
||||
<launchable type="desktop-id">xyz.waozi.werk.desktop</launchable>
|
||||
<url type="homepage">https://github.com/waozixyz/werk</url>
|
||||
<provides><binary>werk</binary></provides>
|
||||
<releases><release version="0.4.2" date="2026-10-23"/><release version="0.4.1" date="2026-10-23"/><release version="0.4.0" date="2026-10-15"/><release version="0.3.1" date="2026-10-13"/><release version="0.3.0" date="2026-10-13"/><release version="0.2.10" date="2026-10-05"/><release version="0.2.9" date="2026-09-05"/><release version="0.2.8" date="2026-08-26"/><release version="0.2.7" date="2026-08-24"/><release version="0.2.6" date="2026-08-24"/><release version="0.2.5" date="2026-08-24"/><release version="0.2.4" date="2026-08-22"/><release version="0.2.3" date="2026-08-21"/><release version="0.2.2" date="2026-08-20"/><release version="0.2.1" date="2026-08-19"/><release version="0.2.0" date="2026-08-18"/><release version="0.1.3" date="2026-08-17"/><release version="0.1.2" date="2026-08-17"/><release version="0.1.1" date="2026-08-17"/><release version="0.1.0" date="2026-08-17"/></releases>
|
||||
<releases><release version="0.4.3" date="2026-10-23"/><release version="0.4.2" date="2026-10-23"/><release version="0.4.1" date="2026-10-23"/><release version="0.4.0" date="2026-10-15"/><release version="0.3.1" date="2026-10-13"/><release version="0.3.0" date="2026-10-13"/><release version="0.2.10" date="2026-10-05"/><release version="0.2.9" date="2026-09-05"/><release version="0.2.8" date="2026-08-26"/><release version="0.2.7" date="2026-08-24"/><release version="0.2.6" date="2026-08-24"/><release version="0.2.5" date="2026-08-24"/><release version="0.2.4" date="2026-08-22"/><release version="0.2.3" date="2026-08-21"/><release version="0.2.2" date="2026-08-20"/><release version="0.2.1" date="2026-08-19"/><release version="0.2.0" date="2026-08-18"/><release version="0.1.3" date="2026-08-17"/><release version="0.1.2" date="2026-08-17"/><release version="0.1.1" date="2026-08-17"/><release version="0.1.0" date="2026-08-17"/></releases>
|
||||
</component>
|
||||
@@ -22,7 +22,7 @@ subprocess.run(["java", "-jar", str(tool), "validate", "--bundle=" + str(bundle)
|
||||
xml = subprocess.check_output(["java", "-jar", str(tool), "dump", "manifest", "--bundle=" + str(bundle)], text=True)
|
||||
manifest = ET.fromstring(xml)
|
||||
android = "{http://schemas.android.com/apk/res/android}"
|
||||
assert manifest.get("package") == "xyz.waozi.pass", "Preserve the installed app ID"
|
||||
assert manifest.get("package") == "xyz.waozi.werk", "Werkzeug must use xyz.waozi.werk"
|
||||
assert manifest.get(android + "versionName") == args.version
|
||||
assert int(manifest.find("uses-sdk").get(android + "targetSdkVersion")) >= 36
|
||||
assert manifest.find("application").get(android + "debuggable", "false") == "false"
|
||||
|
||||
@@ -27,7 +27,7 @@ def check_apk(path):
|
||||
for name in names:
|
||||
if name.endswith(".dex"):
|
||||
classes = list(dex_classes(archive.read(name)))
|
||||
assert all(re.fullmatch(r"Lxyz/waozi/pass/R(?:\$[^;]+)?;", item) for item in classes), f"{path}: packaged application bytecode: {classes}"
|
||||
assert all(re.fullmatch(r"Lxyz/waozi/werk/R(?:\$[^;]+)?;", item) for item in classes), f"{path}: packaged application bytecode: {classes}"
|
||||
for font in ["ui.ttf", "emoji.ttf"]:
|
||||
assert "assets/fonts/" + font in names, f"{path}: missing {font}"
|
||||
for app in ["pass", "auth", "calculator", "clock"]:
|
||||
|
||||
@@ -16,7 +16,7 @@ for path, expected_abis in [(fdroid, {"armeabi-v7a", "arm64-v8a"}),
|
||||
package = re.search(r"package: name='([^']+)' versionCode='([^']+)' versionName='([^']+)'", badging)
|
||||
assert package, f"{path}: no package identity"
|
||||
current = package.groups()
|
||||
assert current[0] == "xyz.waozi.pass", "Updating must preserve Pass's Android ID"
|
||||
assert current[0] == "xyz.waozi.werk", "Werkzeug must use xyz.waozi.werk"
|
||||
assert current[2] == (root / "VERSION").read_text().strip(), "Channel added a version suffix"
|
||||
if identity is None:
|
||||
identity = current
|
||||
|
||||
@@ -18,7 +18,7 @@ if not serial:
|
||||
serial = next((line.split()[0] for line in devices if line.startswith("emulator-") and line.split()[-1] == "device"), None)
|
||||
if not serial or not serial.startswith("emulator-"):
|
||||
raise SystemExit("Android input tests require a private emulator")
|
||||
package = "xyz.waozi.pass"
|
||||
package = "xyz.waozi.werk"
|
||||
|
||||
def adb(*arguments, check=True):
|
||||
return subprocess.run(["adb", "-s", serial, *arguments], check=check, capture_output=True)
|
||||
|
||||
@@ -3,7 +3,7 @@ set -euo pipefail
|
||||
|
||||
root_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
apk="$root_dir/build/werk-android-debug.apk"
|
||||
package_name="${WERK_ANDROID_PACKAGE:-xyz.waozi.pass}"
|
||||
package_name="${WERK_ANDROID_PACKAGE:-xyz.waozi.werk}"
|
||||
|
||||
if [ ! -s "$apk" ]; then
|
||||
echo "android smoke: missing APK artifact: $apk" >&2
|
||||
|
||||
@@ -5,6 +5,7 @@ import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
@@ -86,7 +87,7 @@ try:
|
||||
while time.monotonic() < deadline:
|
||||
assert app.poll() is None, "Werkzeug exited during startup"
|
||||
found = subprocess.run(["xdotool", "search", "--onlyvisible", "--pid", str(app.pid)],
|
||||
env=environment, capture_output=True, text=True)
|
||||
env=environment, capture_output=True, text=True, timeout=5)
|
||||
if found.returncode == 0:
|
||||
window = found.stdout.splitlines()[0]
|
||||
break
|
||||
@@ -97,11 +98,11 @@ try:
|
||||
deadline = time.monotonic() + 20
|
||||
while True:
|
||||
home = capture("home")
|
||||
# The native fallback does not display package sizes.
|
||||
if "kB" in home or "MB" in home:
|
||||
if all(name in home for name in ("Pass", "Auth", "Calculator", "Clock", "Workbook")):
|
||||
break
|
||||
assert app.poll() is None, "Werkzeug exited while loading Apps"
|
||||
assert time.monotonic() < deadline, "Shared Apps controller did not render: " + home
|
||||
assert not re.search(r"\d[\d.]*\s*(?:kB|MB)\b", home, re.I), home
|
||||
for name in ("Auth", "Calculator", "Clock", "Workbook", "Pass"):
|
||||
click_word(name)
|
||||
assert command("xdotool", "getwindowname", window).strip() == name
|
||||
@@ -119,6 +120,7 @@ try:
|
||||
assert json.loads(preferences.read_text())["list"] is True
|
||||
text = capture("list")
|
||||
assert all(name in text for name in ("Pass", "Auth", "Calculator", "Clock", "Workbook")), text
|
||||
assert not re.search(r"\d[\d.]*\s*(?:kB|MB)\b", text, re.I), text
|
||||
click(100, 92)
|
||||
type_text("clock")
|
||||
text = capture("search")
|
||||
@@ -154,7 +156,7 @@ try:
|
||||
deadline = time.monotonic() + 30
|
||||
while True:
|
||||
found = subprocess.run(["xdotool", "search", "--onlyvisible", "--pid", str(app.pid)],
|
||||
env=environment, capture_output=True, text=True)
|
||||
env=environment, capture_output=True, text=True, timeout=5)
|
||||
if found.returncode == 0:
|
||||
window = found.stdout.splitlines()[0]
|
||||
if "Timepiece" in capture("restarted"):
|
||||
|
||||
@@ -14,7 +14,7 @@ environment["YUE_DESKTOP_RECOVERY"] = "0"
|
||||
environment["WERK_TEST_PRIVATE_DISPLAY"] = "1"
|
||||
environment["SDL_RENDER_DRIVER"] = "software"
|
||||
read_fd, write_fd = os.pipe()
|
||||
server = subprocess.Popen(["Xvfb", "-displayfd", str(write_fd), "-screen", "0", "1280x1024x24", "-nolisten", "tcp"],
|
||||
server = subprocess.Popen(["Xvfb", "-noreset", "-displayfd", str(write_fd), "-screen", "0", "1280x1024x24", "-nolisten", "tcp"],
|
||||
pass_fds=(write_fd,), env=environment)
|
||||
os.close(write_fd)
|
||||
try:
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ Launcher :: #import "apps/launcher";
|
||||
Controller :: #import "apps/controller";
|
||||
Rules :: #import "apps/protocol";
|
||||
|
||||
AppsControllerSha256 :: "8c5806d7ff5a4fdaf6b98a7668acbf0aad236ece1d5e68ffe1f7b268a1afb077";
|
||||
AppsControllerSha256 :: "dfc835742d58dc714e175e5adde718c58d51b4132ab80bdb7983eb2985734932";
|
||||
|
||||
HomePreference :: struct {
|
||||
title: [256]u8
|
||||
@@ -209,7 +209,7 @@ HomeAssetAllowed :: (path: string) -> bool { return path == "" }
|
||||
HomeCards :: (context: *void, indices: []s32, bounds: Rectangle,
|
||||
input: TextFieldInput, section_break: s32, columns: s32) -> bool {
|
||||
bytes: Vec(u8)
|
||||
BuilderPrint(*bytes, "\"title\":\"Werkzeug\",\"locale\":\"en\",\"presentation\":{\"mode\":\"%\",\"columns\":%",
|
||||
BuilderPrint(*bytes, "\"title\":\"Werkzeug\",\"locale\":\"en\",\"presentation\":{\"mode\":\"%\",\"hide_sizes\":true,\"columns\":%",
|
||||
ifx home.view.grid then "icon" else "list", columns)
|
||||
if section_break >= 0 { BuilderPrint(*bytes, ",\"section_break\":%", section_break) }
|
||||
BuilderPrint(*bytes, "},\"children\":[")
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
Version :: "0.4.2";
|
||||
Version :: "0.4.3";
|
||||
+20
-20
@@ -19,7 +19,7 @@
|
||||
},
|
||||
{
|
||||
"commit": "6a5f6189ca51e45a59c9ef77c4ec4112393225e0",
|
||||
"dependencies": {"kryon": "pc9c8f901448f635c", "kss": "p1b13dda539ed2a39", "mingcute": "pe1027b9d16704793"},
|
||||
"dependencies": {"kryon": "p62b1df489d9e5c45", "kss": "p1b13dda539ed2a39", "mingcute": "pe1027b9d16704793"},
|
||||
"id": "p0e0131936e76f979",
|
||||
"name": "workbook",
|
||||
"ref": "master",
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
|
||||
"dependencies": {"kryon": "pc9c8f901448f635c"},
|
||||
"dependencies": {"kryon": "p62b1df489d9e5c45"},
|
||||
"id": "p1b13dda539ed2a39",
|
||||
"name": "Kss",
|
||||
"ref": "master",
|
||||
@@ -51,6 +51,14 @@
|
||||
"source": true,
|
||||
"url": "https://github.com/raysan5/raylib.git"
|
||||
},
|
||||
{
|
||||
"commit": "55af1b53b186f5eaaf7249ac7653da3ef1e606d0",
|
||||
"dependencies": {"raylib": "p5a77c9c35110e925"},
|
||||
"id": "p62b1df489d9e5c45",
|
||||
"name": "kryon",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/kryonlabs/kryon.git"
|
||||
},
|
||||
{
|
||||
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
|
||||
"dependencies": {"liboqs": "p4b0a50b49959e674"},
|
||||
@@ -68,22 +76,22 @@
|
||||
"source": true,
|
||||
"url": "https://github.com/LoupVaillant/Monocypher.git"
|
||||
},
|
||||
{
|
||||
"commit": "33f888e50ebefdbee532731fe2aad9ea6f5ab964",
|
||||
"dependencies": {"crypto": "pf039d7a776333200", "kryon": "p62b1df489d9e5c45"},
|
||||
"id": "pae8cbf8fa0578bfc",
|
||||
"name": "Apps",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/waozixyz/apps.git"
|
||||
},
|
||||
{
|
||||
"commit": "f7449b379540f6f6f53c64c980cb5d4d4abcf399",
|
||||
"dependencies": {"daochi_client": "p0cff069893bdc938", "kryon": "pc9c8f901448f635c", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
|
||||
"dependencies": {"daochi_client": "p0cff069893bdc938", "kryon": "p62b1df489d9e5c45", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
|
||||
"id": "pb7942f184eef21db",
|
||||
"name": "Entity",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/waozixyz/entity.git"
|
||||
},
|
||||
{
|
||||
"commit": "b1d4faa4de66ff799c8907ba131061be979bcc7a",
|
||||
"dependencies": {"raylib": "p5a77c9c35110e925"},
|
||||
"id": "pc9c8f901448f635c",
|
||||
"name": "kryon",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/kryonlabs/kryon.git"
|
||||
},
|
||||
{
|
||||
"commit": "9cc6872f75447c3a24c16764f9829d0f58751cb0",
|
||||
"dependencies": {},
|
||||
@@ -99,18 +107,10 @@
|
||||
"name": "crypto",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/ziranlang/crypto.git"
|
||||
},
|
||||
{
|
||||
"commit": "d016377ab37ba4fb754a799569e15a4c0d195b90",
|
||||
"dependencies": {"crypto": "pf039d7a776333200", "kryon": "pc9c8f901448f635c"},
|
||||
"id": "pf87aa276a2b568b4",
|
||||
"name": "Apps",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/waozixyz/apps.git"
|
||||
}
|
||||
],
|
||||
"root": {
|
||||
"dependencies": {"apps": "pf87aa276a2b568b4", "daochi_client": "p0cff069893bdc938", "entity": "pb7942f184eef21db", "kryon": "pc9c8f901448f635c", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "workbook": "p0e0131936e76f979"},
|
||||
"dependencies": {"apps": "pae8cbf8fa0578bfc", "daochi_client": "p0cff069893bdc938", "entity": "pb7942f184eef21db", "kryon": "p62b1df489d9e5c45", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "workbook": "p0e0131936e76f979"},
|
||||
"name": "Werkzeug"
|
||||
},
|
||||
"toolchain": {
|
||||
|
||||
Reference in new issue
Block a user