Rename Werkzeug to Werk
The app, its window and launcher, packages, release files, website, store listing, wordmarks and source now say Werk; the GitHub repository is waozixyz/werk and the itch.io page waozi.itch.io/werk. Daochi keeps the registered app id and record domains under the former name, and Android keeps the package xyz.waozi.pass, so devices stay linked and installs update in place.
No files matched your search
@@ -106,9 +106,9 @@ jobs:
|
||||
run: make package-deb
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: werkzeug-linux-${{ matrix.arch }}
|
||||
name: werk-linux-${{ matrix.arch }}
|
||||
path: |
|
||||
build/werkzeug
|
||||
build/werk
|
||||
build/apps
|
||||
build/pfp.png
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -71,9 +71,9 @@ jobs:
|
||||
- run: make gui
|
||||
- name: Package GUI tarball and Debian package
|
||||
run: |
|
||||
name="werkzeug-linux-${{ matrix.arch }}"
|
||||
name="werk-linux-${{ matrix.arch }}"
|
||||
mkdir -p "build/release/$name"
|
||||
cp -R build/werkzeug build/apps build/pfp.png LICENSE README.md assets/app/icon.png "build/release/$name/"
|
||||
cp -R build/werk build/apps build/pfp.png LICENSE README.md assets/app/icon.png "build/release/$name/"
|
||||
tar -C build/release -czf "build/release/$name.tar.gz" "$name"
|
||||
make package-deb
|
||||
- name: Package AppImage
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
with:
|
||||
name: gui-linux-${{ matrix.arch }}
|
||||
path: |
|
||||
build/release/werkzeug-linux-${{ matrix.arch }}.tar.gz
|
||||
build/release/werk-linux-${{ matrix.arch }}.tar.gz
|
||||
build/release/*.deb
|
||||
build/release/*.AppImage
|
||||
if-no-files-found: error
|
||||
@@ -161,19 +161,19 @@ jobs:
|
||||
--stacktrace
|
||||
VERSION=$(sed -n '1p' VERSION)
|
||||
mkdir -p build/release
|
||||
cp droid/app/build/outputs/apk/release/app-universal-release.apk build/release/werkzeug-android.apk
|
||||
cp droid/app/build/outputs/apk/release/app-arm64-v8a-release.apk build/release/werkzeug-android-arm64-v8a.apk
|
||||
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk build/release/werkzeug-android-armeabi-v7a.apk
|
||||
cp droid/app/build/outputs/apk/release/app-universal-release.apk "build/release/werkzeug-$VERSION.apk"
|
||||
cp droid/app/build/outputs/apk/release/app-arm64-v8a-release.apk "build/release/werkzeug-$VERSION-arm64-v8a.apk"
|
||||
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk "build/release/werkzeug-$VERSION-armeabi-v7a.apk"
|
||||
python3 scripts/android_apk_check.py build/release/werkzeug-android*.apk
|
||||
test -s build/release/werkzeug-android.apk
|
||||
test -s build/release/werkzeug-android-arm64-v8a.apk
|
||||
test -s build/release/werkzeug-android-armeabi-v7a.apk
|
||||
test -s "build/release/werkzeug-$VERSION.apk"
|
||||
test -s "build/release/werkzeug-$VERSION-arm64-v8a.apk"
|
||||
test -s "build/release/werkzeug-$VERSION-armeabi-v7a.apk"
|
||||
cp droid/app/build/outputs/apk/release/app-universal-release.apk build/release/werk-android.apk
|
||||
cp droid/app/build/outputs/apk/release/app-arm64-v8a-release.apk build/release/werk-android-arm64-v8a.apk
|
||||
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk build/release/werk-android-armeabi-v7a.apk
|
||||
cp droid/app/build/outputs/apk/release/app-universal-release.apk "build/release/werk-$VERSION.apk"
|
||||
cp droid/app/build/outputs/apk/release/app-arm64-v8a-release.apk "build/release/werk-$VERSION-arm64-v8a.apk"
|
||||
cp droid/app/build/outputs/apk/release/app-armeabi-v7a-release.apk "build/release/werk-$VERSION-armeabi-v7a.apk"
|
||||
python3 scripts/android_apk_check.py build/release/werk-android*.apk
|
||||
test -s build/release/werk-android.apk
|
||||
test -s build/release/werk-android-arm64-v8a.apk
|
||||
test -s build/release/werk-android-armeabi-v7a.apk
|
||||
test -s "build/release/werk-$VERSION.apk"
|
||||
test -s "build/release/werk-$VERSION-arm64-v8a.apk"
|
||||
test -s "build/release/werk-$VERSION-armeabi-v7a.apk"
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: android
|
||||
@@ -198,26 +198,26 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd build/site
|
||||
zip -qr ../werkzeug-web.zip .
|
||||
zip -qr ../werk-web.zip .
|
||||
|
||||
mkdir -p ../werkzeug-html5
|
||||
cp app/index.html ../werkzeug-html5/
|
||||
cp app/index.js ../werkzeug-html5/
|
||||
cp app/index.wasm ../werkzeug-html5/
|
||||
cp app/sw.js ../werkzeug-html5/
|
||||
cp app/emoji-OFL.txt ../werkzeug-html5/
|
||||
cp manifest.webmanifest ../werkzeug-html5/
|
||||
cp -R icons ../werkzeug-html5/icons
|
||||
mkdir -p ../werk-html5
|
||||
cp app/index.html ../werk-html5/
|
||||
cp app/index.js ../werk-html5/
|
||||
cp app/index.wasm ../werk-html5/
|
||||
cp app/sw.js ../werk-html5/
|
||||
cp app/emoji-OFL.txt ../werk-html5/
|
||||
cp manifest.webmanifest ../werk-html5/
|
||||
cp -R icons ../werk-html5/icons
|
||||
sed -i \
|
||||
-e 's#href="/manifest.webmanifest"#href="manifest.webmanifest"#g' \
|
||||
-e 's#href="/icons/#href="icons/#g' \
|
||||
-e 's#src="/icons/#src="icons/#g' \
|
||||
../werkzeug-html5/index.html
|
||||
../werk-html5/index.html
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
root = Path("../werkzeug-html5")
|
||||
root = Path("../werk-html5")
|
||||
manifest = json.loads((root / "manifest.webmanifest").read_text())
|
||||
manifest["start_url"] = "."
|
||||
manifest["scope"] = "."
|
||||
@@ -226,14 +226,14 @@ jobs:
|
||||
(root / "manifest.webmanifest").write_text(json.dumps(manifest, indent=2) + "\n")
|
||||
|
||||
PY
|
||||
cd ../werkzeug-html5
|
||||
zip -qr ../werkzeug-html5.zip .
|
||||
cd ../werk-html5
|
||||
zip -qr ../werk-html5.zip .
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web
|
||||
path: |
|
||||
build/werkzeug-web.zip
|
||||
build/werkzeug-html5.zip
|
||||
build/werk-web.zip
|
||||
build/werk-html5.zip
|
||||
if-no-files-found: error
|
||||
|
||||
publish:
|
||||
@@ -281,11 +281,11 @@ jobs:
|
||||
channels=()
|
||||
for img in build/artifacts/*.AppImage; do
|
||||
[ -e "$img" ] || continue
|
||||
arch=$(basename "$img" | sed -n 's/^werkzeug-.*-\([^-]*\)\.AppImage$/\1/p')
|
||||
arch=$(basename "$img" | sed -n 's/^werk-.*-\([^-]*\)\.AppImage$/\1/p')
|
||||
channels+=("--channel" "appimage-$(arch_name "$arch")=$img")
|
||||
done
|
||||
DEB="$(find build/artifacts -maxdepth 1 -name '*.deb' -print -quit || true)"
|
||||
TAR="$(find build/artifacts -maxdepth 1 -name 'werkzeug-linux-*.tar.gz' -print -quit || true)"
|
||||
TAR="$(find build/artifacts -maxdepth 1 -name 'werk-linux-*.tar.gz' -print -quit || true)"
|
||||
[ -n "$DEB" ] && channels+=("--channel" "deb=$DEB")
|
||||
[ -n "$TAR" ] && channels+=("--channel" "tarball=$TAR")
|
||||
if [ ${#channels[@]} -eq 0 ]; then
|
||||
@@ -370,9 +370,9 @@ jobs:
|
||||
set -euo pipefail
|
||||
VERSION="$(sed -n '1p' VERSION)"
|
||||
|
||||
html5_zip="build/artifacts/werkzeug-html5.zip"
|
||||
android_apk="build/artifacts/werkzeug-android.apk"
|
||||
linux_appimage="build/artifacts/werkzeug-$VERSION-x86_64.AppImage"
|
||||
html5_zip="build/artifacts/werk-html5.zip"
|
||||
android_apk="build/artifacts/werk-android.apk"
|
||||
linux_appimage="build/artifacts/werk-$VERSION-x86_64.AppImage"
|
||||
|
||||
test -f "$html5_zip"
|
||||
test -f "$android_apk"
|
||||
@@ -385,7 +385,7 @@ jobs:
|
||||
log_file="$(mktemp)"
|
||||
|
||||
while [ "$attempt" -le 6 ]; do
|
||||
if butler push "$target" "waozi/pass:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
|
||||
if butler push "$target" "waozi/werk:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
|
||||
rm -f "$log_file"
|
||||
return 0
|
||||
fi
|
||||
|
||||
@@ -56,12 +56,12 @@ jobs:
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: werkzeug-browser-diagnostics
|
||||
name: werk-browser-diagnostics
|
||||
path: build/web-test/*.png
|
||||
if-no-files-found: ignore
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: werkzeug-site
|
||||
name: werk-site
|
||||
path: build/site
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: werkzeug-site
|
||||
name: werk-site
|
||||
path: build/site
|
||||
- name: Deploy Preview To Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: werkzeug-site
|
||||
name: werk-site
|
||||
path: build/site
|
||||
- name: Deploy Production To Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Werkzeug repository rules
|
||||
# Werk repository rules
|
||||
|
||||
Werkzeug (formerly Pass) is a public repository. Read `~/Projects/AGENTS.md`
|
||||
Werk (formerly Pass) is a public repository. Read `~/Projects/AGENTS.md`
|
||||
first.
|
||||
|
||||
## Tools are separate apps
|
||||
|
||||
- Each tool lives in `apps/<tool>/` and builds into its own bundle,
|
||||
`build/apps/<tool>.zib`. A tool reaches the host only through
|
||||
`shared/werkzeug_app.zi`; the host (`src/apps.zi`) checks every call a
|
||||
`shared/werk_app.zi`; the host (`src/apps.zi`) checks every call a
|
||||
bundle asks for and keeps each tool's files, assets and secret separate.
|
||||
- Tools never import another tool's modules. Code two tools need goes in
|
||||
`shared/`, as SHA-256 and PBKDF2 do.
|
||||
@@ -26,7 +26,7 @@ first.
|
||||
- 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.
|
||||
- Every file Werkzeug writes is private (0600 in 0700 folders).
|
||||
- Every file Werk writes is private (0600 in 0700 folders).
|
||||
|
||||
## Platforms and tests
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## [0.3.0] - 2026-10-13
|
||||
|
||||
- Pass is now Werkzeug: a home screen of small private tools, each its own app and all preinstalled.
|
||||
- Pass is now Werk: a home screen of small private tools, each its own app and all preinstalled.
|
||||
- Add Auth for two-factor sign-in codes from otpauth links or secret keys; copied codes clear after 30 seconds.
|
||||
- Add Calculator, and Clock with a stopwatch.
|
||||
- Add a profile with your name, a picture and the appearance every tool shares.
|
||||
|
||||
@@ -17,8 +17,8 @@ MONOCYPHER_SOURCES = $(MONOCYPHER_DIR)/src/monocypher.c $(MONOCYPHER_DIR)/src/op
|
||||
CC ?= cc
|
||||
BIN_DIR ?= $(HOME)/bin
|
||||
DATA_DIR ?= $(if $(XDG_DATA_HOME),$(XDG_DATA_HOME),$(HOME)/.local/share)
|
||||
# The tool bundles and Werkzeug's other files.
|
||||
LIB_DIR ?= $(HOME)/.local/lib/werkzeug
|
||||
# The tool bundles and Werk's other files.
|
||||
LIB_DIR ?= $(HOME)/.local/lib/werk
|
||||
WEB_CC ?= $(if $(wildcard $(HOME)/emsdk/upstream/emscripten/emcc),$(HOME)/emsdk/upstream/emscripten/emcc,emcc)
|
||||
SOURCES := $(wildcard src/*.zi shared/*.zi apps/*/*.zi)
|
||||
LIBRARY_SOURCES = $(wildcard $(KRYON_DIR)/src/ui/*.zi $(KRYON_DIR)/src/ui/*/module.zi $(KRYON_DIR)/src/kss/*.zi $(KRYON_DIR)/src/backend/*.zi $(KRYON_DIR)/src/backend/*/module.zi $(ZIRAN_ROOT)/std/*.zi)
|
||||
@@ -40,7 +40,7 @@ build/pass: build/generated/cli/.complete
|
||||
cli: build/pass
|
||||
cp build/pass pass
|
||||
|
||||
# Each app is its own bundle; Werkzeug runs them in one window.
|
||||
# Each app is its own bundle; Werk runs them in one window.
|
||||
APPS := pass auth calculator clock
|
||||
APP_BUNDLES := $(APPS:%=build/apps/%.zib)
|
||||
SHARED_SOURCES := $(wildcard shared/*.zi)
|
||||
@@ -49,7 +49,7 @@ apps: $(APP_BUNDLES)
|
||||
.SECONDEXPANSION:
|
||||
build/apps/%.zib: $$(wildcard apps/$$*/*.zi apps/$$*/assets/*) $(SHARED_SOURCES) ziran.lock
|
||||
mkdir -p $(@D)
|
||||
$(ZIRAN) bundle --root . --module-path apps/$* $(APP_MODULE_PATHS) --define KRYON_HOSTED_UI --define WERKZEUG_APP \
|
||||
$(ZIRAN) bundle --root . --module-path apps/$* $(APP_MODULE_PATHS) --define KRYON_HOSTED_UI --define WERK_APP \
|
||||
$(if $(wildcard apps/$*/assets),--asset-dir assets=apps/$*/assets) --entry $*:Main -o $@ apps/$*/$*.zi
|
||||
|
||||
# The portable bundle runtime the host links, built from the locked Ziran.
|
||||
@@ -64,15 +64,15 @@ build/generated/desktop/.complete: $(wildcard src/*.zi) $(SHARED_SOURCES) $(LIBR
|
||||
build/liboqs/lib/liboqs.a: ziran.lock
|
||||
cmake -S $(LIBOQS_DIR) -B build/liboqs $(LIBOQS_FLAGS) > /dev/null
|
||||
cmake --build build/liboqs --target oqs > /dev/null
|
||||
build/werkzeug: build/generated/desktop/.complete build/ziran/libziran.a build/liboqs/lib/liboqs.a Makefile
|
||||
build/werk: build/generated/desktop/.complete build/ziran/libziran.a build/liboqs/lib/liboqs.a Makefile
|
||||
$(CC) $(CFLAGS) -Ibuild/generated/desktop -I$(MONOCYPHER_DIR)/src -I$(MONOCYPHER_DIR)/src/optional \
|
||||
build/generated/desktop/*.c $(MONOCYPHER_SOURCES) build/ziran/libziran.a build/liboqs/lib/liboqs.a \
|
||||
$(shell pkg-config --libs sdl2 cairo freetype2 fontconfig pangocairo) -l:libcurl.so.4 -lm -lpthread -o $@
|
||||
build/pfp.png: $(KRYON_DIR)/icons/pfp.png
|
||||
cp $< $@
|
||||
gui: build/werkzeug build/pfp.png apps
|
||||
gui: build/werk build/pfp.png apps
|
||||
run: gui
|
||||
./build/werkzeug
|
||||
./build/werk
|
||||
|
||||
source-check:
|
||||
python3 scripts/source_check.py
|
||||
@@ -91,7 +91,7 @@ test: source-check core-test pass-state-test app-logic-test cli-test lesspass-co
|
||||
gui-smoke: gui
|
||||
sh scripts/gui_smoke.sh
|
||||
gui-test: gui
|
||||
sh scripts/werkzeug_gui_test.sh
|
||||
sh scripts/werk_gui_test.sh
|
||||
sh scripts/migration_test.sh
|
||||
|
||||
# The bundle runtime for the browser, built from the locked Ziran.
|
||||
@@ -131,19 +131,19 @@ web-smoke: site
|
||||
|
||||
# CMake emits JNI and foreign ABI types separately for each Android ABI.
|
||||
android-debug: apps
|
||||
cd droid && env WERKZEUG_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleDebug -Pabi=$(ANDROID_ABIS) -PsplitApks=true $(GRADLE_ARGS)
|
||||
cd droid && env WERK_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleDebug -Pabi=$(ANDROID_ABIS) -PsplitApks=true $(GRADLE_ARGS)
|
||||
mkdir -p build
|
||||
cp droid/app/build/outputs/apk/debug/app-universal-debug.apk build/werkzeug-android-debug.apk
|
||||
python3 scripts/android_apk_check.py build/werkzeug-android-debug.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk build/werkzeug-android-arm64-v8a-debug.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk build/werkzeug-android-armeabi-v7a-debug.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-universal-debug.apk build/werk-android-debug.apk
|
||||
python3 scripts/android_apk_check.py build/werk-android-debug.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk build/werk-android-arm64-v8a-debug.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk build/werk-android-armeabi-v7a-debug.apk
|
||||
android-emulator: apps
|
||||
cd droid && env WERKZEUG_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleDebug -Pabi=x86_64 $(GRADLE_ARGS)
|
||||
cd droid && env WERK_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleDebug -Pabi=x86_64 $(GRADLE_ARGS)
|
||||
mkdir -p build
|
||||
cp droid/app/build/outputs/apk/debug/app-debug.apk build/werkzeug-android-emulator.apk
|
||||
python3 scripts/android_apk_check.py build/werkzeug-android-emulator.apk
|
||||
cp droid/app/build/outputs/apk/debug/app-debug.apk build/werk-android-emulator.apk
|
||||
python3 scripts/android_apk_check.py build/werk-android-emulator.apk
|
||||
android-release: apps
|
||||
cd droid && env WERKZEUG_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleRelease -Pabi=$(ANDROID_ABIS) -PsplitApks=true $(GRADLE_ARGS)
|
||||
cd droid && env WERK_ZIRAN_COMMAND="$(ZIRAN)" KRYON_DIR="$(KRYON_DIR)" ZIRAN_ROOT="$(ZIRAN_ROOT)" RAYLIB_DIR="$(RAYLIB_DIR)" LIBOQS_DIR="$(LIBOQS_DIR)" MONOCYPHER_DIR="$(MONOCYPHER_DIR)" ./gradlew assembleRelease -Pabi=$(ANDROID_ABIS) -PsplitApks=true $(GRADLE_ARGS)
|
||||
android-smoke:
|
||||
bash scripts/android_smoke.sh
|
||||
android-input-test:
|
||||
@@ -164,15 +164,15 @@ install-cli: cli
|
||||
install -m 0755 pass $(BIN_DIR)/pass
|
||||
install-gui: gui
|
||||
mkdir -p $(BIN_DIR) $(LIB_DIR)/apps $(DATA_DIR)/applications $(DATA_DIR)/icons/hicolor/512x512/apps
|
||||
install -m 0755 build/werkzeug $(BIN_DIR)/werkzeug
|
||||
install -m 0755 build/werk $(BIN_DIR)/werk
|
||||
install -m 0644 $(APP_BUNDLES) $(LIB_DIR)/apps/
|
||||
install -m 0644 build/pfp.png $(LIB_DIR)/pfp.png
|
||||
cp packaging/linux/xyz.waozi.werkzeug.desktop $(DATA_DIR)/applications/xyz.waozi.werkzeug.desktop
|
||||
cp assets/app/icon.png $(DATA_DIR)/icons/hicolor/512x512/apps/werkzeug.png
|
||||
cp packaging/linux/xyz.waozi.werk.desktop $(DATA_DIR)/applications/xyz.waozi.werk.desktop
|
||||
cp assets/app/icon.png $(DATA_DIR)/icons/hicolor/512x512/apps/werk.png
|
||||
uninstall-cli:
|
||||
rm -f $(BIN_DIR)/pass
|
||||
uninstall-gui:
|
||||
rm -f $(BIN_DIR)/werkzeug $(DATA_DIR)/applications/xyz.waozi.werkzeug.desktop $(DATA_DIR)/icons/hicolor/512x512/apps/werkzeug.png
|
||||
rm -f $(BIN_DIR)/werk $(DATA_DIR)/applications/xyz.waozi.werk.desktop $(DATA_DIR)/icons/hicolor/512x512/apps/werk.png
|
||||
rm -rf $(LIB_DIR)
|
||||
package-deb: gui
|
||||
./scripts/package-deb.sh
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# Werkzeug
|
||||
# Werk
|
||||
|
||||
Small private tools in one app. The home screen opens each one:
|
||||
|
||||
@@ -26,19 +26,19 @@ Small private tools in one app. The home screen opens each one:
|
||||
The profile holds your name, a picture and the appearance every tool shares:
|
||||
system, light or dark, an accent color and Material or Classic widgets.
|
||||
|
||||
Werkzeug was previously Pass. On its first start it moves Pass's saved
|
||||
Werk was previously Pass. On its first start it moves Pass's saved
|
||||
profiles, settings and theme into the new layout; the Android app keeps
|
||||
Pass's package, so it updates in place and keeps a saved master password.
|
||||
|
||||
## Privacy
|
||||
|
||||
Everything is computed on the device. Werkzeug makes no network requests
|
||||
Everything is computed on the device. Werk makes no network requests
|
||||
unless you turn on sync. Each tool keeps its own files, readable only by your
|
||||
user:
|
||||
|
||||
| Platform | Data |
|
||||
|---|---|
|
||||
| Linux | `$XDG_DATA_HOME/werkzeug` (or `~/.local/share/werkzeug`) |
|
||||
| Linux | `$XDG_DATA_HOME/werk` (or `~/.local/share/werk`) |
|
||||
| Android | the app's private storage |
|
||||
| Browser | IndexedDB on this site |
|
||||
|
||||
@@ -73,7 +73,7 @@ default. Sync is off until you create or connect an account.
|
||||
|
||||
Each tool lives in `apps/<tool>/` and is built into its own portable bundle,
|
||||
`build/apps/<tool>.zib`. All four are preinstalled. A tool reaches the host
|
||||
only through the calls in `shared/werkzeug_app.zi` (its private files,
|
||||
only through the calls in `shared/werk_app.zi` (its private files,
|
||||
clipboard, clock, key derivation and device-protected secret), and the host
|
||||
checks every call a bundle asks for before it runs. Tools never import each
|
||||
other.
|
||||
@@ -87,7 +87,7 @@ builds need Emscripten; Android builds need JDK 21 and the SDK/NDK versions in
|
||||
ImageMagick on private displays.
|
||||
|
||||
```sh
|
||||
make gui # build/werkzeug and the app bundles in build/apps
|
||||
make gui # build/werk and the app bundles in build/apps
|
||||
make test # Pass core and CLI, Pass state, Auth codes, Calculator
|
||||
make gui-smoke # light and dark home screens on a private Xvfb display
|
||||
make gui-test # every tool, clipboard and profile on a private display
|
||||
@@ -150,7 +150,7 @@ apps/auth/ Auth: TOTP, otpauth links, accounts and screens
|
||||
apps/calculator/ Calculator
|
||||
apps/clock/ Clock and stopwatch
|
||||
shared/ the app interface, protocol and SHA-256/PBKDF2
|
||||
src/werkzeug.zi home screen, profile screen and the bar above a tool
|
||||
src/werk.zi home screen, profile screen and the bar above a tool
|
||||
src/apps.zi loads, checks and runs the app bundles
|
||||
src/platform.zi files, clock, clipboard and secrets per platform
|
||||
src/desktop.zi, src/android_main.zi, src/browser.zi platform main loops
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Auth: two-factor sign-in codes. Each account is a synced record holding
|
||||
// its otpauth link, so it follows the owner's Werkzeug account to their
|
||||
// its otpauth link, so it follows the owner's Werk account to their
|
||||
// other devices; secrets are never shown again after adding.
|
||||
#import "session"
|
||||
#import "geometry"
|
||||
@@ -17,7 +17,7 @@
|
||||
#import "tree"
|
||||
#import "text_buffer"
|
||||
#import "number_text"
|
||||
#import "werkzeug_app"
|
||||
#import "werk_app"
|
||||
#import "app_protocol"
|
||||
#import "totp"
|
||||
#import "sha256"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#import "box_widget"
|
||||
#import "text_buffer"
|
||||
#import "number_text"
|
||||
#import "werkzeug_app"
|
||||
#import "werk_app"
|
||||
#import "app_protocol"
|
||||
#import "arithmetic"
|
||||
Icon :: #import "mingcute_regular_counter";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#import "control_props"
|
||||
#import "text_buffer"
|
||||
#import "number_text"
|
||||
#import "werkzeug_app"
|
||||
#import "werk_app"
|
||||
#import "app_protocol"
|
||||
Icon :: #import "mingcute_regular_time";
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#import "tree"
|
||||
#import "text_buffer"
|
||||
#import "utf8"
|
||||
#import "werkzeug_app"
|
||||
#import "werk_app"
|
||||
#import "app_protocol"
|
||||
#import "pass_core"
|
||||
#import "pass_state"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#import "sha256"
|
||||
#if #defined(WERKZEUG_APP) {
|
||||
#import "werkzeug_app"
|
||||
#if #defined(WERK_APP) {
|
||||
#import "werk_app"
|
||||
}
|
||||
|
||||
PassOptions :: struct {
|
||||
@@ -45,14 +45,14 @@ master_emoji_codepoints: [64]s32 = .[
|
||||
];
|
||||
|
||||
|
||||
// Whether the last DeriveKey failed; only the Werkzeug host can refuse.
|
||||
// Whether the last DeriveKey failed; only the Werk host can refuse.
|
||||
derive_failed: bool;
|
||||
|
||||
DeriveKey :: (password: string, salt: string) -> [32]u8 {
|
||||
derive_failed = false
|
||||
// Inside Werkzeug the host derives the key natively; the portable
|
||||
// Inside Werk the host derives the key natively; the portable
|
||||
// interpreter would take minutes for 100,000 rounds.
|
||||
#if #defined(WERKZEUG_APP) {
|
||||
#if #defined(WERK_APP) {
|
||||
output: [32]u8
|
||||
derive_failed = !AppPbkdf2Sha256(password, salt, 100000, output[:])
|
||||
return output
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#import "pass_text"
|
||||
#import "text_buffer"
|
||||
#import "number_text"
|
||||
#import "werkzeug_app"
|
||||
#import "werk_app"
|
||||
|
||||
Profile :: struct {
|
||||
name: [64]u8
|
||||
|
||||
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22)
|
||||
project(Werkzeug C)
|
||||
project(Werk C)
|
||||
get_filename_component(REPO_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../../../.." ABSOLUTE)
|
||||
set(KRYON_DIR "$ENV{KRYON_DIR}" CACHE PATH "Locked Kryon source" FORCE)
|
||||
set(ZIRAN_ROOT "$ENV{ZIRAN_ROOT}" CACHE PATH "Locked Ziran toolchain" FORCE)
|
||||
@@ -12,8 +12,8 @@ foreach(root KRYON_DIR ZIRAN_ROOT RAYLIB_DIR LIBOQS_DIR MONOCYPHER_DIR)
|
||||
endif()
|
||||
endforeach()
|
||||
set(ZIRAN "${REPO_ROOT}/scripts/ziran.sh")
|
||||
if(DEFINED ENV{WERKZEUG_ZIRAN_COMMAND} AND NOT "$ENV{WERKZEUG_ZIRAN_COMMAND}" STREQUAL "")
|
||||
get_filename_component(ZIRAN "$ENV{WERKZEUG_ZIRAN_COMMAND}" ABSOLUTE BASE_DIR "${REPO_ROOT}")
|
||||
if(DEFINED ENV{WERK_ZIRAN_COMMAND} AND NOT "$ENV{WERK_ZIRAN_COMMAND}" STREQUAL "")
|
||||
get_filename_component(ZIRAN "$ENV{WERK_ZIRAN_COMMAND}" ABSOLUTE BASE_DIR "${REPO_ROOT}")
|
||||
endif()
|
||||
set(GENERATED "${CMAKE_BINARY_DIR}/ziran")
|
||||
set(DEFINES --define ANDROID_BUILD)
|
||||
@@ -76,5 +76,5 @@ target_link_libraries(main oqs)
|
||||
kryon_android_app(main)
|
||||
target_link_libraries(main "${BUNDLE_RUNTIME_DIR}/libziran.a")
|
||||
target_link_options(main PRIVATE -Wl,--wrap=pthread_attr_init)
|
||||
# Werkzeug has no handwritten native sources; every app translation unit above is
|
||||
# Werk has no handwritten native sources; every app translation unit above is
|
||||
# generated from .zi for this ABI. raylib and the NDK own native_app_glue.
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Werkzeug</string>
|
||||
<string name="app_name">Werk</string>
|
||||
</resources>
|
||||
@@ -13,5 +13,5 @@ dependencyResolutionManagement {
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "werkzeug"
|
||||
rootProject.name = "werk"
|
||||
include ':app'
|
||||
@@ -1,4 +1,4 @@
|
||||
- Pass is now Werkzeug: a home screen of small private tools, each its own app and all preinstalled.
|
||||
- Pass is now Werk: a home screen of small private tools, each its own app and all preinstalled.
|
||||
- Add Auth for two-factor sign-in codes from otpauth links or secret keys; copied codes clear after 30 seconds.
|
||||
- Add Calculator, and Clock with a stopwatch.
|
||||
- Add a profile with your name, a picture and the appearance every tool shares.
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
Werkzeug holds small private tools in one app. Everything is computed on your device and nothing is tracked. It makes no network requests unless you turn on sync.
|
||||
Werk holds small private tools in one app. Everything is computed on your device and nothing is tracked. It makes no network requests unless you turn on sync.
|
||||
|
||||
• Pass derives strong, repeatable passwords. The same site, login, master password, and settings always produce the same result, so there is no password database to back up, sync, or lose. It is LessPass-compatible, with configurable length, counter, character classes and excluded characters, and an optional master password kept behind device authentication.
|
||||
• Auth shows two-factor sign-in codes (TOTP with SHA-1, SHA-256 or SHA-512). Add accounts from otpauth links, including an authenticator's plain-text export, or by secret key. Copied codes are cleared from the clipboard after 30 seconds. Optional sync keeps them on all your devices, encrypted on the device so the server never sees them.
|
||||
• Calculator handles everyday arithmetic with brackets, powers and percent.
|
||||
• Clock shows the local time and date and has a stopwatch.
|
||||
|
||||
A profile with your name and picture sets the appearance every tool shares. Werkzeug was previously called Pass; updating keeps your profiles, settings and saved master password.
|
||||
A profile with your name and picture sets the appearance every tool shares. Werk was previously called Pass; updating keeps your profiles, settings and saved master password.
|
||||
|
||||
Pass is an independent implementation of the LessPass algorithm. Compatibility does not imply endorsement by or affiliation with the LessPass project.
|
||||
|
||||
Source code: https://github.com/waozixyz/pass
|
||||
Source code: https://github.com/waozixyz/werk
|
||||
Website: https://pass.waozi.xyz
|
||||
|
||||
Licensed under BSD-3-Clause.
|
||||
@@ -1 +1 @@
|
||||
Werkzeug
|
||||
Werk
|
||||
@@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>xyz.waozi.werkzeug</id>
|
||||
<name>Werkzeug</name>
|
||||
<id>xyz.waozi.werk</id>
|
||||
<name>Werk</name>
|
||||
<summary>Passwords, two-factor codes, a calculator and a clock</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>BSD-3-Clause</project_license>
|
||||
<description>
|
||||
<p>Werkzeug holds small private tools: Pass derives repeatable passwords from a site, login, master password and settings without a password database; Auth shows two-factor sign-in codes; Calculator and Clock cover everyday sums and time. Everything stays on the device.</p>
|
||||
<p>Werk holds small private tools: Pass derives repeatable passwords from a site, login, master password and settings without a password database; Auth shows two-factor sign-in codes; Calculator and Clock cover everyday sums and time. Everything stays on the device.</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">xyz.waozi.werkzeug.desktop</launchable>
|
||||
<url type="homepage">https://github.com/waozixyz/werkzeug</url>
|
||||
<provides><binary>werkzeug</binary></provides>
|
||||
<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.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>
|
||||
@@ -1,9 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Werkzeug
|
||||
Name=Werk
|
||||
Comment=Passwords, two-factor codes, a calculator and a clock
|
||||
Exec=werkzeug
|
||||
Icon=werkzeug
|
||||
Exec=werk
|
||||
Icon=werk
|
||||
Terminal=false
|
||||
Categories=Utility;Security;
|
||||
StartupNotify=true
|
||||
@@ -10,7 +10,7 @@ from android_apk_check import check_apk
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
output = root / "build/android-input"
|
||||
output.mkdir(parents=True, exist_ok=True)
|
||||
serial = os.environ.get("WERKZEUG_ANDROID_EMULATOR")
|
||||
serial = os.environ.get("WERK_ANDROID_EMULATOR")
|
||||
if not serial:
|
||||
devices = subprocess.check_output(["adb", "devices"], text=True).splitlines()
|
||||
serial = next((line.split()[0] for line in devices if line.startswith("emulator-") and line.split()[-1] == "device"), None)
|
||||
@@ -30,12 +30,12 @@ def shot(name):
|
||||
def alive():
|
||||
if not shell("pidof", package, check=False).strip():
|
||||
details = adb("logcat", "-d", "-b", "crash").stdout.decode()
|
||||
raise AssertionError("Werkzeug stopped in the private emulator:\n" + details[-6000:])
|
||||
raise AssertionError("Werk stopped in the private emulator:\n" + details[-6000:])
|
||||
activities = shell("dumpsys", "activity", "activities")
|
||||
# mResumedActivity before Android 13, ResumedActivity from then on.
|
||||
resumed = next((line for line in activities.splitlines()
|
||||
if line.strip().startswith(("mResumedActivity:", "ResumedActivity:"))), "")
|
||||
assert package in resumed, f"Werkzeug activity closed or lost foreground: {resumed}"
|
||||
assert package in resumed, f"Werk activity closed or lost foreground: {resumed}"
|
||||
|
||||
def tap(x, y):
|
||||
shell("input", "tap", str(x), str(y)); time.sleep(0.25)
|
||||
@@ -44,7 +44,7 @@ def type_text(text):
|
||||
shell("input", "text", text.replace(" ", "%s")); time.sleep(0.3)
|
||||
|
||||
def system_bars(height):
|
||||
"""The app's first and last rows in pixels: Werkzeug keeps its content
|
||||
"""The app's first and last rows in pixels: Werk keeps its content
|
||||
between the status bar and the navigation bar."""
|
||||
dump = shell("dumpsys", "window")
|
||||
status = re.search(r"type=statusBars frame=\[0,0\]\[\d+,(\d+)\]", dump)
|
||||
@@ -53,7 +53,7 @@ def system_bars(height):
|
||||
bottom = int(navigation.group(1)) if navigation and int(navigation.group(2)) == height else height
|
||||
return top, bottom
|
||||
|
||||
apk = root / "build/werkzeug-android-emulator.apk"
|
||||
apk = root / "build/werk-android-emulator.apk"
|
||||
check_apk(apk)
|
||||
try:
|
||||
adb("install", "-r", str(apk))
|
||||
@@ -65,7 +65,7 @@ try:
|
||||
width, height = map(int, size.split("x"))
|
||||
zoom = width / 390
|
||||
top, bottom = system_bars(height)
|
||||
# Pass's tile on the home screen, then Pass below Werkzeug's 56-unit bar.
|
||||
# Pass's tile on the home screen, then Pass below Werk's 56-unit bar.
|
||||
tap(int(127 * zoom), top + int(132 * zoom)); time.sleep(0.5); alive(); shot("pass")
|
||||
bar = 56
|
||||
tap(int(90 * zoom), top + int((55 + bar) * zoom)); type_text("example.com")
|
||||
@@ -107,7 +107,7 @@ try:
|
||||
assert shell("run-as", package, "cat", "files/apps/pass/profiles.tsv") == expected
|
||||
assert shell("run-as", package, "stat", "-c", "%a", "files/apps/pass/profiles.tsv").strip() == "600"
|
||||
shot("persisted")
|
||||
# Profile's name is one of Werkzeug's own fields. Each letter must land
|
||||
# Profile's name is one of Werk's own fields. Each letter must land
|
||||
# after the last, at the caret the keyboard reports.
|
||||
tap(int(28 * zoom), top + int(28 * zoom)); time.sleep(0.5)
|
||||
tap(width - int(60 * zoom), top + int(28 * zoom)); time.sleep(0.8); alive()
|
||||
@@ -118,7 +118,7 @@ try:
|
||||
tap(int(28 * zoom), top + int(28 * zoom)); time.sleep(0.5); alive()
|
||||
settings = shell("run-as", package, "cat", "files/profile/settings.txt")
|
||||
assert "name=Ada Lovelace\n" in settings, f"Profile name typed out of order: {settings!r}"
|
||||
print("Werkzeug Android: home, Pass keyboard, masked master, profiles, generation, restart and profile name pass")
|
||||
print("Werk Android: home, Pass keyboard, masked master, profiles, generation, restart and profile name pass")
|
||||
except BaseException:
|
||||
shot("failure")
|
||||
raise
|
||||
@@ -2,8 +2,8 @@
|
||||
set -euo pipefail
|
||||
|
||||
root_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
apk="$root_dir/build/werkzeug-android-debug.apk"
|
||||
package_name="${WERKZEUG_ANDROID_PACKAGE:-xyz.waozi.pass}"
|
||||
apk="$root_dir/build/werk-android-debug.apk"
|
||||
package_name="${WERK_ANDROID_PACKAGE:-xyz.waozi.pass}"
|
||||
|
||||
if [ ! -s "$apk" ]; then
|
||||
echo "android smoke: missing APK artifact: $apk" >&2
|
||||
@@ -14,12 +14,12 @@ if ! command -v adb >/dev/null 2>&1; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
device="${WERKZEUG_ANDROID_DEVICE:-}"
|
||||
device="${WERK_ANDROID_DEVICE:-}"
|
||||
if [ -z "$device" ]; then
|
||||
device=$(adb devices | awk 'NR > 1 && $1 ~ /^emulator-/ && $2 == "device" { print $1; exit }')
|
||||
fi
|
||||
if [ -z "$device" ]; then
|
||||
echo "android smoke: skipped, no private emulator; set WERKZEUG_ANDROID_DEVICE explicitly for a device" >&2
|
||||
echo "android smoke: skipped, no private emulator; set WERK_ANDROID_DEVICE explicitly for a device" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Render the Werkzeug mark (Pass option 7) from the canonical vector for all distribution sizes."""
|
||||
"""Render the Werk mark (Pass option 7) from the canonical vector for all distribution sizes."""
|
||||
from pathlib import Path
|
||||
import io
|
||||
import cairosvg
|
||||
@@ -20,7 +20,7 @@ for density, size in [('mdpi',48),('hdpi',72),('xhdpi',96),('xxhdpi',144),('xxxh
|
||||
for path, size in outputs.items():
|
||||
render(size, '#ffffff' if 'launcher' in path or '/icons/' in path else None).save(ROOT / path)
|
||||
font_path = '/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf'
|
||||
name = 'Werkzeug'
|
||||
name = 'Werk'
|
||||
for path, size in [('assets/app/readme-banner.png',(1536,512)), ('assets/app/readme-square-630x500.png',(630,500)), ('showcase/banner.png',(1536,1024)), ('web/site/images/social.png',(1536,1024))]:
|
||||
w,h=size; image=Image.new('RGB',size,'#f7f3ff'); d=ImageDraw.Draw(image)
|
||||
icon_size=int(min(w*.24,h*.55))
|
||||
@@ -34,4 +34,4 @@ for path, size in [('assets/app/readme-banner.png',(1536,512)), ('assets/app/rea
|
||||
image.paste(mark,(left,top),mark)
|
||||
d.text((left+icon_size+gap, (h-(box[3]-box[1]))/2-box[1]),name,font=font,fill='#291747')
|
||||
image.save(ROOT/path)
|
||||
print('Rendered Werkzeug brand assets')
|
||||
print('Rendered Werk brand assets')
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Renders Werkzeug's home screen in light and dark on private Xvfb displays,
|
||||
# Renders Werk's home screen in light and dark on private Xvfb displays,
|
||||
# with disposable profiles, never the user's saved data.
|
||||
set -eu
|
||||
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
@@ -14,12 +14,12 @@ for mode in light dark; do
|
||||
fi
|
||||
printf 'theme_mode=%s\n' "$value" > "$work/$mode/data/profile/settings.txt"
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS xvfb-run -a -e /dev/stderr \
|
||||
env WERKZEUG_DATA="$work/$mode/data" XDG_CACHE_HOME="$work/$mode/cache" WERKZEUG_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/werkzeug-$mode.png" "$root/build/werkzeug"
|
||||
test -s "$work/werkzeug-$mode.png"
|
||||
env WERK_DATA="$work/$mode/data" XDG_CACHE_HOME="$work/$mode/cache" WERK_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/werk-$mode.png" "$root/build/werk"
|
||||
test -s "$work/werk-$mode.png"
|
||||
done
|
||||
if cmp -s "$work/werkzeug-light.png" "$work/werkzeug-dark.png"; then
|
||||
echo 'Werkzeug light and dark themes rendered the same frame' >&2
|
||||
if cmp -s "$work/werk-light.png" "$work/werk-dark.png"; then
|
||||
echo 'Werk light and dark themes rendered the same frame' >&2
|
||||
exit 1
|
||||
fi
|
||||
echo 'Werkzeug desktop: light and dark home screens rendered on private Xvfb displays'
|
||||
echo 'Werk desktop: light and dark home screens rendered on private Xvfb displays'
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Pass's saved settings, profiles and theme reach Werkzeug on its first
|
||||
# Pass's saved settings, profiles and theme reach Werk on its first
|
||||
# start; a disposable fixture folder stands in for the old working folder.
|
||||
set -eu
|
||||
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
@@ -12,8 +12,8 @@ printf '2' > .kryon_pass_theme_mode.txt
|
||||
printf '5' > .kryon_pass_theme_id.txt
|
||||
printf 'Example\texample.com\talice\t24\t1\t1\t1\t1\t1\t\n' > profiles.tsv
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS xvfb-run -a -e /dev/stderr \
|
||||
env WERKZEUG_DATA="$work/data" XDG_CACHE_HOME="$work/cache" WERKZEUG_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/home.png" "$root/build/werkzeug"
|
||||
env WERK_DATA="$work/data" XDG_CACHE_HOME="$work/cache" WERK_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/home.png" "$root/build/werk"
|
||||
test "$(cat "$work/data/apps/pass/.kryon_pass_length.txt")" = 24
|
||||
cmp "$work/legacy/profiles.tsv" "$work/data/apps/pass/profiles.tsv"
|
||||
grep -qx 'theme_mode=2' "$work/data/profile/settings.txt"
|
||||
@@ -22,7 +22,7 @@ test "$(stat -c %a "$work/data/apps/pass/profiles.tsv")" = 600
|
||||
# A second start leaves the migrated folder alone.
|
||||
printf '30' > .kryon_pass_length.txt
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS xvfb-run -a -e /dev/stderr \
|
||||
env WERKZEUG_DATA="$work/data" XDG_CACHE_HOME="$work/cache" WERKZEUG_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/home.png" "$root/build/werkzeug"
|
||||
env WERK_DATA="$work/data" XDG_CACHE_HOME="$work/cache" WERK_ASSETS="$root/build" \
|
||||
KRYON_CAPTURE_PATH="$work/home.png" "$root/build/werk"
|
||||
test "$(cat "$work/data/apps/pass/.kryon_pass_length.txt")" = 24
|
||||
echo 'Pass data migration: settings, profiles and theme moved once'
|
||||
@@ -5,23 +5,23 @@ root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
version=$(sed -n '1p' "$root/VERSION")
|
||||
arch=${APPIMAGE_ARCH:-$(uname -m)}
|
||||
linuxdeploy=${LINUXDEPLOY:-linuxdeploy}
|
||||
appdir="$root/build/package/appimage/werkzeug.AppDir"
|
||||
out="$root/build/release/werkzeug-${version}-${arch}.AppImage"
|
||||
appdir="$root/build/package/appimage/werk.AppDir"
|
||||
out="$root/build/release/werk-${version}-${arch}.AppImage"
|
||||
|
||||
test -n "$version"
|
||||
rm -rf "$appdir"
|
||||
mkdir -p "$appdir/usr/bin" "$appdir/usr/lib/werkzeug/apps" "$appdir/usr/share/applications" \
|
||||
mkdir -p "$appdir/usr/bin" "$appdir/usr/lib/werk/apps" "$appdir/usr/share/applications" \
|
||||
"$appdir/usr/share/metainfo" "$appdir/usr/share/icons/hicolor/512x512/apps" "$(dirname "$out")"
|
||||
cp "$root/build/werkzeug" "$appdir/usr/bin/werkzeug"
|
||||
cp "$root"/build/apps/*.zib "$appdir/usr/lib/werkzeug/apps/"
|
||||
cp "$root/build/pfp.png" "$appdir/usr/lib/werkzeug/pfp.png"
|
||||
cp "$root/packaging/linux/xyz.waozi.werkzeug.desktop" "$appdir/usr/share/applications/xyz.waozi.werkzeug.desktop"
|
||||
cp "$root/packaging/linux/xyz.waozi.werkzeug.appdata.xml" "$appdir/usr/share/metainfo/xyz.waozi.werkzeug.appdata.xml"
|
||||
cp "$root/assets/app/icon.png" "$appdir/usr/share/icons/hicolor/512x512/apps/werkzeug.png"
|
||||
cp "$root/assets/app/icon.png" "$root/build/package/appimage/werkzeug.png"
|
||||
rm -f "$root"/Werkzeug-*.AppImage "$root"/werkzeug-*.AppImage
|
||||
ARCH="$arch" "$linuxdeploy" --appdir "$appdir" --desktop-file "$root/packaging/linux/xyz.waozi.werkzeug.desktop" \
|
||||
--icon-file "$root/build/package/appimage/werkzeug.png" --output appimage
|
||||
cp "$root/build/werk" "$appdir/usr/bin/werk"
|
||||
cp "$root"/build/apps/*.zib "$appdir/usr/lib/werk/apps/"
|
||||
cp "$root/build/pfp.png" "$appdir/usr/lib/werk/pfp.png"
|
||||
cp "$root/packaging/linux/xyz.waozi.werk.desktop" "$appdir/usr/share/applications/xyz.waozi.werk.desktop"
|
||||
cp "$root/packaging/linux/xyz.waozi.werk.appdata.xml" "$appdir/usr/share/metainfo/xyz.waozi.werk.appdata.xml"
|
||||
cp "$root/assets/app/icon.png" "$appdir/usr/share/icons/hicolor/512x512/apps/werk.png"
|
||||
cp "$root/assets/app/icon.png" "$root/build/package/appimage/werk.png"
|
||||
rm -f "$root"/Werk-*.AppImage "$root"/werk-*.AppImage
|
||||
ARCH="$arch" "$linuxdeploy" --appdir "$appdir" --desktop-file "$root/packaging/linux/xyz.waozi.werk.desktop" \
|
||||
--icon-file "$root/build/package/appimage/werk.png" --output appimage
|
||||
image=$(find "$root" -maxdepth 1 -type f -name '*.AppImage' -print | head -n 1)
|
||||
test -n "$image"
|
||||
mv "$image" "$out"
|
||||
|
||||
@@ -4,26 +4,26 @@ set -eu
|
||||
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
version=$(sed -n '1p' "$root/VERSION")
|
||||
arch=${DEB_ARCH:-$(dpkg --print-architecture)}
|
||||
stage="$root/build/package/deb/werkzeug"
|
||||
stage="$root/build/package/deb/werk"
|
||||
out="$root/build/release"
|
||||
|
||||
test -n "$version"
|
||||
rm -rf "$stage"
|
||||
mkdir -p "$stage/DEBIAN" "$stage/usr/bin" "$stage/usr/lib/werkzeug/apps" "$stage/usr/share/applications" \
|
||||
"$stage/usr/share/metainfo" "$stage/usr/share/icons/hicolor/512x512/apps" "$stage/usr/share/doc/werkzeug" "$out"
|
||||
cp "$root/build/werkzeug" "$stage/usr/bin/werkzeug"
|
||||
cp "$root"/build/apps/*.zib "$stage/usr/lib/werkzeug/apps/"
|
||||
cp "$root/build/pfp.png" "$stage/usr/lib/werkzeug/pfp.png"
|
||||
cp "$root/packaging/linux/xyz.waozi.werkzeug.desktop" "$stage/usr/share/applications/xyz.waozi.werkzeug.desktop"
|
||||
cp "$root/packaging/linux/xyz.waozi.werkzeug.appdata.xml" "$stage/usr/share/metainfo/xyz.waozi.werkzeug.appdata.xml"
|
||||
cp "$root/assets/app/icon.png" "$stage/usr/share/icons/hicolor/512x512/apps/werkzeug.png"
|
||||
cp "$root/LICENSE" "$root/README.md" "$stage/usr/share/doc/werkzeug/"
|
||||
mkdir -p "$stage/DEBIAN" "$stage/usr/bin" "$stage/usr/lib/werk/apps" "$stage/usr/share/applications" \
|
||||
"$stage/usr/share/metainfo" "$stage/usr/share/icons/hicolor/512x512/apps" "$stage/usr/share/doc/werk" "$out"
|
||||
cp "$root/build/werk" "$stage/usr/bin/werk"
|
||||
cp "$root"/build/apps/*.zib "$stage/usr/lib/werk/apps/"
|
||||
cp "$root/build/pfp.png" "$stage/usr/lib/werk/pfp.png"
|
||||
cp "$root/packaging/linux/xyz.waozi.werk.desktop" "$stage/usr/share/applications/xyz.waozi.werk.desktop"
|
||||
cp "$root/packaging/linux/xyz.waozi.werk.appdata.xml" "$stage/usr/share/metainfo/xyz.waozi.werk.appdata.xml"
|
||||
cp "$root/assets/app/icon.png" "$stage/usr/share/icons/hicolor/512x512/apps/werk.png"
|
||||
cp "$root/LICENSE" "$root/README.md" "$stage/usr/share/doc/werk/"
|
||||
find "$stage" -type d -exec chmod 0755 {} \;
|
||||
chmod 0755 "$stage/usr/bin/werkzeug"
|
||||
chmod 0755 "$stage/usr/bin/werk"
|
||||
find "$stage/usr/share" "$stage/usr/lib" -type f -exec chmod 0644 {} \;
|
||||
installed=$(du -sk "$stage" | awk '{print $1}')
|
||||
cat > "$stage/DEBIAN/control" <<CONTROL
|
||||
Package: werkzeug
|
||||
Package: werk
|
||||
Version: $version
|
||||
Architecture: $arch
|
||||
Maintainer: Waozi <[email protected]>
|
||||
@@ -37,4 +37,4 @@ Description: small private tools: passwords, two-factor codes, calculator, clock
|
||||
shows two-factor sign-in codes, and Calculator and Clock cover everyday sums
|
||||
and time. Everything stays on the device.
|
||||
CONTROL
|
||||
dpkg-deb --root-owner-group --build "$stage" "$out/werkzeug_${version}_${arch}.deb"
|
||||
dpkg-deb --root-owner-group --build "$stage" "$out/werk_${version}_${arch}.deb"
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Pass's settings, profiles and secure master against a mock Werkzeug host,
|
||||
# Pass's settings, profiles and secure master against a mock Werk host,
|
||||
# natively and as a portable bundle.
|
||||
set -eu
|
||||
ziran=${1:?pass the ziran command}
|
||||
@@ -15,7 +15,7 @@ env -u DISPLAY -u WAYLAND_DISPLAY build/pass-state-test/native
|
||||
binds=""
|
||||
for name in ReadStoreHost WriteStoreHost ClipboardCopyHost SecureAvailableHost SecureSavedHost \
|
||||
SecureRequestHost SecureForgetHost SecurePollHost; do
|
||||
binds="$binds --bind werkzeug_app:$name=pass_state_host:$name"
|
||||
binds="$binds --bind werk_app:$name=pass_state_host:$name"
|
||||
done
|
||||
"$ziran" bundle $args --entry pass_state_test:PassStateAnswer $binds \
|
||||
-o build/pass-state-test/portable.zib tests/pass_state_test.zi tests/pass_state_host.zi
|
||||
|
||||
@@ -25,4 +25,4 @@ import re
|
||||
permissions = set(re.findall(r'uses-permission android:name="([^"]+)"', manifest))
|
||||
assert permissions <= {"android.permission.USE_BIOMETRIC", "android.permission.USE_FINGERPRINT",
|
||||
"android.permission.INTERNET"}, permissions
|
||||
print("All maintained Werkzeug application implementations are Ziran")
|
||||
print("All maintained Werk application implementations are Ziran")
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Account sync between two Werkzeug devices through a local Daochi node:
|
||||
# Account sync between two Werk devices through a local Daochi node:
|
||||
# create an account with an Auth record, connect a second device with the
|
||||
# shown code, receive the record there, then remove it and see the removal
|
||||
# arrive. Needs the Daochi checkout (DAOCHI_DIR) with its liboqs built.
|
||||
@@ -57,7 +57,7 @@ python3 -I scripts/register_daochi_app.py "$server" "$work/publisher.pem" "$work
|
||||
device() {
|
||||
dir=$1
|
||||
shift
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY WERKZEUG_DATA="$work/$dir" WERKZEUG_SYNC_SERVER="$server" \
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY WERK_DATA="$work/$dir" WERK_SYNC_SERVER="$server" \
|
||||
"$work/sync_e2e" "$@"
|
||||
}
|
||||
device a create
|
||||
@@ -72,4 +72,4 @@ if grep -a -q GEZDGNBVGY3TQOJQ "$work/daochi.db"* 2>/dev/null; then
|
||||
echo "the server stored a secret in plain text"
|
||||
exit 1
|
||||
fi
|
||||
echo 'Werkzeug sync: account, connected device, record and removal through a local Daochi node'
|
||||
echo 'Werk sync: account, connected device, record and removal through a local Daochi node'
|
||||
@@ -1,4 +1,4 @@
|
||||
// Exercise the built site's Werkzeug app in a private headless browser with a
|
||||
// Exercise the built site's Werk app in a private headless browser with a
|
||||
// disposable profile: the home screen, a tool opened by ?app=, Calculator
|
||||
// typing, and Pass alone by ?mini as embedding pages use it.
|
||||
import {spawn} from 'node:child_process';
|
||||
@@ -32,7 +32,7 @@ await new Promise(done => server.listen(0, '127.0.0.1', done));
|
||||
const base = `http://127.0.0.1:${server.address().port}/app/`;
|
||||
const environment = {...process.env};
|
||||
for (const key of ['DISPLAY', 'WAYLAND_DISPLAY', 'XAUTHORITY', 'DBUS_SESSION_BUS_ADDRESS']) delete environment[key];
|
||||
const browser = spawn(process.env.WERKZEUG_WEB_BROWSER || 'chromium', ['--headless=new', '--no-sandbox',
|
||||
const browser = spawn(process.env.WERK_WEB_BROWSER || 'chromium', ['--headless=new', '--no-sandbox',
|
||||
'--disable-gpu', '--disable-dev-shm-usage', '--no-first-run', '--remote-debugging-port=0',
|
||||
'--user-data-dir=' + profile, '--window-size=420,760', 'about:blank'],
|
||||
{env: environment, detached: true, stdio: ['ignore', 'ignore', 'pipe']});
|
||||
@@ -108,7 +108,7 @@ try {
|
||||
await delay(200);
|
||||
}
|
||||
await screenshot(name + '-failure');
|
||||
throw Error(`Werkzeug did not draw ${query || 'home'}: ${exceptions.join(' ')} ${diagnostics}`);
|
||||
throw Error(`Werk did not draw ${query || 'home'}: ${exceptions.join(' ')} ${diagnostics}`);
|
||||
};
|
||||
const type = async text => {
|
||||
for (const character of text) {
|
||||
@@ -126,7 +126,7 @@ try {
|
||||
await screenshot('calculator-typed');
|
||||
await open('?mini', 'pass-mini');
|
||||
if (exceptions.length) throw Error('Page exceptions: ' + exceptions.join(' '));
|
||||
console.log('Werkzeug web: home, Calculator and Pass in mini mode drew in a private headless browser');
|
||||
console.log('Werk web: home, Calculator and Pass in mini mode drew in a private headless browser');
|
||||
} finally {
|
||||
socket?.close();
|
||||
try {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Drive Werkzeug and its four apps on the harness's private Xvfb display.
|
||||
"""Drive Werk and its four apps on the harness's private Xvfb display.
|
||||
|
||||
Uses disposable data and cache folders and fixture secrets only. Run
|
||||
through scripts/werkzeug_gui_test.sh, which starts the private display.
|
||||
through scripts/werk_gui_test.sh, which starts the private display.
|
||||
"""
|
||||
from pathlib import Path
|
||||
import base64
|
||||
@@ -14,9 +14,9 @@ import struct
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
assert os.environ.get("WERKZEUG_TEST_PRIVATE_DISPLAY") == "1", "Run scripts/werkzeug_gui_test.sh"
|
||||
assert os.environ.get("WERK_TEST_PRIVATE_DISPLAY") == "1", "Run scripts/werk_gui_test.sh"
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
output = root / "build/werkzeug-gui-test"
|
||||
output = root / "build/werk-gui-test"
|
||||
shutil.rmtree(output, ignore_errors=True)
|
||||
data = output / "data"
|
||||
cache = output / "cache"
|
||||
@@ -24,9 +24,9 @@ data.mkdir(parents=True)
|
||||
cache.mkdir(parents=True)
|
||||
environment = dict(os.environ)
|
||||
environment.pop("WAYLAND_DISPLAY", None)
|
||||
environment["WERKZEUG_DATA"] = str(data)
|
||||
environment["WERK_DATA"] = str(data)
|
||||
environment["XDG_CACHE_HOME"] = str(cache)
|
||||
environment["WERKZEUG_ASSETS"] = str(root / "build")
|
||||
environment["WERK_ASSETS"] = str(root / "build")
|
||||
app = None
|
||||
window = None
|
||||
|
||||
@@ -41,10 +41,10 @@ def command(*args):
|
||||
|
||||
def start():
|
||||
global app, window
|
||||
app = subprocess.Popen([str(root / "build/werkzeug")], env=environment)
|
||||
app = subprocess.Popen([str(root / "build/werk")], env=environment)
|
||||
deadline = time.monotonic() + 30
|
||||
while time.monotonic() < deadline:
|
||||
assert app.poll() is None, "Werkzeug exited before showing its window"
|
||||
assert app.poll() is None, "Werk exited before showing its window"
|
||||
found = subprocess.run(["xdotool", "search", "--onlyvisible", "--pid", str(app.pid)],
|
||||
env=environment, capture_output=True, text=True)
|
||||
if found.returncode == 0:
|
||||
@@ -53,7 +53,7 @@ def start():
|
||||
time.sleep(0.5)
|
||||
return
|
||||
time.sleep(0.1)
|
||||
raise AssertionError("Werkzeug did not show its window")
|
||||
raise AssertionError("Werk did not show its window")
|
||||
|
||||
|
||||
def stop():
|
||||
@@ -172,6 +172,6 @@ try:
|
||||
assert "name=Fixture Person\n" in settings and "theme_mode=2\n" in settings, settings
|
||||
assert (data / "profile/settings.txt").stat().st_mode & 0o077 == 0
|
||||
stop()
|
||||
print("Werkzeug GUI test: home, Pass, Calculator, Clock, Auth and Profile ran on a private display")
|
||||
print("Werk GUI test: home, Pass, Calculator, Clock, Auth and Profile ran on a private display")
|
||||
finally:
|
||||
stop()
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Runs the Werkzeug GUI test on its own private Xvfb display, never the
|
||||
# Runs the Werk GUI test on its own private Xvfb display, never the
|
||||
# developer's desktop.
|
||||
set -eu
|
||||
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$root"
|
||||
exec env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS xvfb-run -a -e /dev/stderr \
|
||||
env WERKZEUG_TEST_PRIVATE_DISPLAY=1 python3 scripts/werkzeug_gui_test.py
|
||||
env WERK_TEST_PRIVATE_DISPLAY=1 python3 scripts/werk_gui_test.py
|
||||
@@ -1,4 +1,4 @@
|
||||
// What the host asks of a run of an app's Main, shared by Werkzeug and its
|
||||
// What the host asks of a run of an app's Main, shared by Werk and its
|
||||
// apps.
|
||||
APP_IDENTIFY :: 1
|
||||
APP_FRAME :: 2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// SHA-256, HMAC-SHA-256 and PBKDF2, shared by Werkzeug and its apps.
|
||||
// SHA-256, HMAC-SHA-256 and PBKDF2, shared by Werk and its apps.
|
||||
Sha256State :: struct {
|
||||
state: [8]u32
|
||||
bit_length: u64
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// The interface between Werkzeug and its apps. Every app is a separate
|
||||
// The interface between Werk and its apps. Every app is a separate
|
||||
// bundle; the host answers these calls for the app that is running. Storage,
|
||||
// secure storage and assets are private to that app.
|
||||
#import "session"
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 30 KiB |
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"slug": "pass",
|
||||
"name": "Pass",
|
||||
"summary": "Deterministic password generator with CLI, desktop, Android, and browser builds.",
|
||||
"slug": "werk",
|
||||
"name": "Werk",
|
||||
"summary": "Small private tools: passwords, two-factor codes, a calculator and a clock, for Android, desktop and the browser.",
|
||||
"repository": {
|
||||
"platform": "github",
|
||||
"url": "https://github.com/waozixyz/pass",
|
||||
"url": "https://github.com/waozixyz/werk",
|
||||
"owner": "waozixyz",
|
||||
"name": "pass"
|
||||
"name": "werk"
|
||||
},
|
||||
"homepage": "https://pass.waozi.xyz",
|
||||
"banner": "showcase/banner.png",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// The Daochi account that syncs Werkzeug between the owner's devices. The
|
||||
// The Daochi account that syncs Werk between the owner's devices. The
|
||||
// private account/keys.txt holds the account's ML-DSA key, this device's
|
||||
// Ed25519 seed and the vault key that encrypts every record; the server
|
||||
// stores only ciphertext. Devices share the account and vault keys only
|
||||
@@ -17,6 +17,8 @@
|
||||
#import "sync_keys"
|
||||
|
||||
ACCOUNT_SERVER :: "https://api.waozi.xyz"
|
||||
// Werk's former name stays in its Daochi identifiers: the app is registered
|
||||
// under it and linked devices sign their records with it.
|
||||
ACCOUNT_APP :: "werkzeug"
|
||||
ACCOUNT_FILE_LIMIT :: 12288
|
||||
|
||||
@@ -38,10 +40,10 @@ account: Account;
|
||||
account_generation: s32;
|
||||
|
||||
// The server a new account uses. Desktop tests point it at a local node
|
||||
// with WERKZEUG_SYNC_SERVER.
|
||||
// with WERK_SYNC_SERVER.
|
||||
DefaultServer :: () -> string {
|
||||
#if !#defined(ANDROID_BUILD) && !#defined(PLATFORM_WEB) {
|
||||
override := EnvironmentText("WERKZEUG_SYNC_SERVER")
|
||||
override := EnvironmentText("WERK_SYNC_SERVER")
|
||||
if override != "" {
|
||||
return override
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ CreateKey :: (env: *JniEnv) -> bool {
|
||||
ConfirmDevice :: (session: *ActivityJniSession) -> bool {
|
||||
keyguard := Service(session, "keyguard")
|
||||
args: [2]JniValue
|
||||
args[0] = ArgumentObject(TextObject(session.env, "Werkzeug"))
|
||||
args[0] = ArgumentObject(TextObject(session.env, "Werk"))
|
||||
args[1] = ArgumentObject(TextObject(session.env, "Unlock your saved master password"))
|
||||
intent := ObjectCall(session.env, keyguard, "createConfirmDeviceCredentialIntent", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/Intent;", args[:])
|
||||
if intent == null { return false }
|
||||
@@ -381,7 +381,7 @@ AndroidClipboardWrite :: (value: string) -> bool {
|
||||
session: ActivityJniSession
|
||||
if activity_jni_attach(*session) == 0 { return false }
|
||||
args: [2]JniValue
|
||||
args[0] = ArgumentObject(TextObject(session.env, "Werkzeug"))
|
||||
args[0] = ArgumentObject(TextObject(session.env, "Werk"))
|
||||
args[1] = ArgumentObject(TextObject(session.env, value))
|
||||
clip := StaticCall(session.env, "android/content/ClipData", "newPlainText", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;", args[:])
|
||||
args[0] = ArgumentObject(clip)
|
||||
|
||||
@@ -94,7 +94,7 @@ AndroidWidgetCall :: (context: *void, module: *u8, function: *u8,
|
||||
return 1
|
||||
}
|
||||
|
||||
// Werkzeug's own fields follow the editor in two steps. Before a focused
|
||||
// Werk's own fields follow the editor in two steps. Before a focused
|
||||
// field draws, typing there replaces the text in buffer and the caret moves
|
||||
// where the editor has it, so the field never sends back a caret from
|
||||
// before the edit, which would put the next letter in the wrong place.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "werkzeug"
|
||||
#import "werk"
|
||||
#import "profile"
|
||||
#import "platform"
|
||||
#import "android"
|
||||
@@ -21,7 +21,7 @@ WriteLog :: (priority: s32, tag: *u8, message: *u8) -> s32 #foreign log_library
|
||||
Report :: (message: string) {
|
||||
tag: [16]u8
|
||||
text: [128]u8
|
||||
if CopyCString("Werkzeug", tag[:]) && CopyCString(message, text[:]) {
|
||||
if CopyCString("Werk", tag[:]) && CopyCString(message, text[:]) {
|
||||
unused WriteLog(6, *tag[0], *text[0])
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ main :: () -> s32 {
|
||||
thread_adapter: AttributeInit = NativeThreadAttributes
|
||||
unused thread_adapter
|
||||
title: [16]u8
|
||||
unused CopyCString("Werkzeug", title[:])
|
||||
unused CopyCString("Werk", title[:])
|
||||
InitWindow(0, 0, *title[0])
|
||||
if !IsWindowReady() {
|
||||
return 1
|
||||
@@ -69,7 +69,7 @@ main :: () -> s32 {
|
||||
Render.CloseRaylib()
|
||||
return 1
|
||||
}
|
||||
WerkzeugStart()
|
||||
WerkStart()
|
||||
ok: bool = true
|
||||
while ok && Render.PollRaylib() {
|
||||
width: s32
|
||||
@@ -108,7 +108,7 @@ main :: () -> s32 {
|
||||
Report("Could not begin frame")
|
||||
}
|
||||
if ok {
|
||||
ok = WerkzeugFrame(session, bounds) == 0
|
||||
ok = WerkFrame(session, bounds) == 0
|
||||
if !ok {
|
||||
Report("Could not compose frame")
|
||||
}
|
||||
@@ -120,7 +120,7 @@ main :: () -> s32 {
|
||||
}
|
||||
}
|
||||
AndroidFieldsEnd()
|
||||
ShowKeyboard(WerkzeugKeyboard())
|
||||
ShowKeyboard(WerkKeyboard())
|
||||
ok = Render.EndRaylibFrame() && ok
|
||||
if !ok {
|
||||
Report("Could not present frame")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Runs the Werkzeug apps. Each app is its own bundle: the host checks every
|
||||
// Runs the Werk apps. Each app is its own bundle: the host checks every
|
||||
// capability it asks for, answers its calls and draws its widgets into the
|
||||
// host's session. An app's files, assets and secret belong to it alone.
|
||||
#import "std/bundle_host"
|
||||
@@ -83,7 +83,7 @@ AppCount :: () -> s32 {
|
||||
}
|
||||
|
||||
// Whether a capability's module is this one. Bundles may report the module
|
||||
// with a package prefix, such as "werkzeug_werkzeug_app".
|
||||
// with a package prefix, such as "werk_werk_app".
|
||||
ModuleIs :: (value: string, name: string) -> bool {
|
||||
if value == name {
|
||||
return true
|
||||
@@ -108,7 +108,7 @@ AppFunction :: (function: string) -> bool {
|
||||
}
|
||||
|
||||
AppAllows :: (context: *void, module: string, function: string) -> bool {
|
||||
if ModuleIs(module, "werkzeug_app") {
|
||||
if ModuleIs(module, "werk_app") {
|
||||
return AppFunction(function)
|
||||
}
|
||||
return WidgetHostSupports(module, function)
|
||||
@@ -292,7 +292,7 @@ SecurePollCall :: (arguments: *HostValue, result: *HostValue) -> s32 {
|
||||
|
||||
AppCall :: (context: *void, module: *u8, function: *u8,
|
||||
arguments: *HostValue, count: s32, result: *HostValue) -> s32 {
|
||||
if !ModuleIs(TextFromCString(module), "werkzeug_app") {
|
||||
if !ModuleIs(TextFromCString(module), "werk_app") {
|
||||
#if #defined(ANDROID_BUILD) {
|
||||
return AndroidWidgetCall(context, module, function, arguments, count, result)
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// The browser host. ?app=ID opens that tool at start; ?mini opens Pass on
|
||||
// its own, for pages that embed it.
|
||||
#import "werkzeug"
|
||||
#import "werk"
|
||||
#import "browser_storage"
|
||||
#import "std/text_buffer"
|
||||
Browser :: #import "kryon/Canvas";
|
||||
@@ -40,12 +40,12 @@ main :: () -> s32 {
|
||||
Browser.CloseCanvas()
|
||||
return 1
|
||||
}
|
||||
WerkzeugStart()
|
||||
WerkStart()
|
||||
query := BrowserQuery()
|
||||
if QueryValue(query, "mini") != "" {
|
||||
unused WerkzeugOpen("pass", true)
|
||||
unused WerkOpen("pass", true)
|
||||
} else if QueryValue(query, "app") != "" {
|
||||
unused WerkzeugOpen(QueryValue(query, "app"), false)
|
||||
unused WerkOpen(QueryValue(query, "app"), false)
|
||||
}
|
||||
ok: bool = true
|
||||
while ok && Browser.PollCanvas() {
|
||||
@@ -67,7 +67,7 @@ main :: () -> s32 {
|
||||
viewport := Browser.CanvasViewport()
|
||||
ok = BeginFrame(session, cast(u64)1, viewport) == FrameStatus.FrameOk
|
||||
if ok {
|
||||
ok = WerkzeugFrame(session, viewport) == 0
|
||||
ok = WerkFrame(session, viewport) == 0
|
||||
}
|
||||
if ok {
|
||||
ok = EndFrame(session) == FrameStatus.FrameOk
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Browser storage: Werkzeug's files live in IndexedDB through Emscripten's
|
||||
// Browser storage: Werk's files live in IndexedDB through Emscripten's
|
||||
// IDBFS, in the same /pass-data database Pass used, so Pass's saved
|
||||
// profiles and settings carry over. Without storage (private windows,
|
||||
// embedded previews) the tools still work; nothing is kept.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#import "werkzeug"
|
||||
#import "werk"
|
||||
#import "std/c_string"
|
||||
#import "std/byte_text_linux"
|
||||
Desktop :: #import "kryon/Desktop";
|
||||
@@ -29,22 +29,22 @@ DrawDesktop :: (session: Session) -> bool {
|
||||
TreeSecondaryPointerUpdate(session, Desktop.PollSecondaryPointer())
|
||||
PointerWheelSend(session, pointer.x, pointer.y, Desktop.DesktopWheelMove())
|
||||
if BeginFrame(session, cast(u64)1, viewport) != FrameStatus.FrameOk {
|
||||
Report("Werkzeug: could not begin frame\n")
|
||||
Report("Werk: could not begin frame\n")
|
||||
return false
|
||||
}
|
||||
if WerkzeugFrame(session, viewport) != 0 {
|
||||
if WerkFrame(session, viewport) != 0 {
|
||||
TreeCancel(session)
|
||||
Report("Werkzeug: could not compose frame\n")
|
||||
Report("Werk: could not compose frame\n")
|
||||
return false
|
||||
}
|
||||
if EndFrame(session) != FrameStatus.FrameOk {
|
||||
Report("Werkzeug: could not paint frame\n")
|
||||
Report("Werk: could not paint frame\n")
|
||||
return false
|
||||
}
|
||||
unused Desktop.DesktopCursor(session)
|
||||
ok := Desktop.EndDesktopFrame()
|
||||
if !ok {
|
||||
Report("Werkzeug: could not present frame\n")
|
||||
Report("Werk: could not present frame\n")
|
||||
}
|
||||
return ok
|
||||
}
|
||||
@@ -53,18 +53,18 @@ DrawDesktop :: (session: Session) -> bool {
|
||||
main :: (argc: s32, argv: **u8) -> s32 {
|
||||
if !Desktop.OpenDesktopSized(DESKTOP_WIDTH, DESKTOP_HEIGHT) {
|
||||
Desktop.CloseDesktop()
|
||||
Report("Werkzeug: could not open desktop\n")
|
||||
Report("Werk: could not open desktop\n")
|
||||
return 1
|
||||
}
|
||||
title: [16]u8
|
||||
unused CopyCString("Werkzeug", title[:])
|
||||
unused CopyCString("Werk", title[:])
|
||||
SetTitle(Desktop.window, *title[0])
|
||||
session := SessionOpen()
|
||||
if !SessionValid(session) {
|
||||
Desktop.CloseDesktop()
|
||||
return 1
|
||||
}
|
||||
WerkzeugStart()
|
||||
WerkStart()
|
||||
ok: bool = true
|
||||
if Desktop.CaptureRequested() {
|
||||
ok = DrawDesktop(session)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Brings the settings and profiles Pass saved before it became part of
|
||||
// Werkzeug into the Pass app's own folder, once, and its theme into the
|
||||
// Werk into the Pass app's own folder, once, and its theme into the
|
||||
// profile. The old files are left in place.
|
||||
#import "std/file"
|
||||
#import "std/c_string"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Where Werkzeug keeps its files, and the clock, clipboard, keyboard and
|
||||
// Where Werk keeps its files, and the clock, clipboard, keyboard and
|
||||
// secret storage its apps use, on the desktop and on Android. Every file
|
||||
// Werkzeug writes is private (0600 in 0700 folders).
|
||||
// Werk writes is private (0600 in 0700 folders).
|
||||
#import "std/file"
|
||||
#import "std/date_time_linux"
|
||||
#import "std/date_parse"
|
||||
@@ -46,7 +46,7 @@ EnvironmentText :: (name: string) -> string {
|
||||
return TextFromCString(value)
|
||||
}
|
||||
|
||||
// $XDG_<kind>_HOME/werkzeug, or ~/<fallback>/werkzeug.
|
||||
// $XDG_<kind>_HOME/werk, or ~/<fallback>/werk.
|
||||
UserRoot :: (output: []u8, variable: string, fallback: string) -> string {
|
||||
base := EnvironmentText(variable)
|
||||
folder: [PATH_LIMIT]u8
|
||||
@@ -57,10 +57,10 @@ UserRoot :: (output: []u8, variable: string, fallback: string) -> string {
|
||||
}
|
||||
base = PathJoin(folder[:], home, fallback)
|
||||
}
|
||||
return PathJoin(output, base, "werkzeug")
|
||||
return PathJoin(output, base, "werk")
|
||||
}
|
||||
|
||||
// Werkzeug's private data. On Android it is the app's internal folder,
|
||||
// Werk's private data. On Android it is the app's internal folder,
|
||||
// where Pass kept its files.
|
||||
#program_export
|
||||
DataRoot :: () -> string {
|
||||
@@ -73,7 +73,7 @@ DataRoot :: () -> string {
|
||||
} else #if #defined(PLATFORM_WEB) {
|
||||
unused CopyCString(BROWSER_DATA, data_root[:])
|
||||
} else {
|
||||
override := EnvironmentText("WERKZEUG_DATA")
|
||||
override := EnvironmentText("WERK_DATA")
|
||||
if override != "" {
|
||||
unused CopyCString(override, data_root[:])
|
||||
} else {
|
||||
@@ -90,7 +90,7 @@ CacheRoot :: () -> string {
|
||||
#if #defined(ANDROID_BUILD) {
|
||||
unused PathJoin(cache_root[:], DataRoot(), "cache")
|
||||
} else #if #defined(PLATFORM_WEB) {
|
||||
unused CopyCString("/tmp/werkzeug-cache", cache_root[:])
|
||||
unused CopyCString("/tmp/werk-cache", cache_root[:])
|
||||
} else {
|
||||
unused UserRoot(cache_root[:], "XDG_CACHE_HOME", ".cache")
|
||||
}
|
||||
@@ -98,9 +98,9 @@ CacheRoot :: () -> string {
|
||||
return TextUntilNul(cache_root[:])
|
||||
}
|
||||
|
||||
// Werkzeug's own files: lib/werkzeug beside an installed executable's
|
||||
// prefix, ~/.local/lib/werkzeug for a user installation, or the folder of
|
||||
// the executable in a build. WERKZEUG_ASSETS overrides them. On Android
|
||||
// Werk's own files: lib/werk beside an installed executable's
|
||||
// prefix, ~/.local/lib/werk for a user installation, or the folder of
|
||||
// the executable in a build. WERK_ASSETS overrides them. On Android
|
||||
// they are the APK's assets, read by relative path; the browser build
|
||||
// embeds them at the root of its file system.
|
||||
#program_export
|
||||
@@ -111,7 +111,7 @@ AssetsRoot :: () -> string {
|
||||
if assets_root[0] != cast(u8)0 {
|
||||
return TextUntilNul(assets_root[:])
|
||||
}
|
||||
override := EnvironmentText("WERKZEUG_ASSETS")
|
||||
override := EnvironmentText("WERK_ASSETS")
|
||||
if override != "" {
|
||||
unused CopyCString(override, assets_root[:])
|
||||
return TextUntilNul(assets_root[:])
|
||||
@@ -130,8 +130,8 @@ AssetsRoot :: () -> string {
|
||||
base := TextView(executable[0:folder - 1])
|
||||
installed: [PATH_LIMIT]u8
|
||||
user: [PATH_LIMIT]u8
|
||||
candidates: [3]string = .[PathJoin(installed[:], base, "../lib/werkzeug"),
|
||||
PathJoin(user[:], EnvironmentText("HOME"), ".local/lib/werkzeug"), base]
|
||||
candidates: [3]string = .[PathJoin(installed[:], base, "../lib/werk"),
|
||||
PathJoin(user[:], EnvironmentText("HOME"), ".local/lib/werk"), base]
|
||||
for index: 0..2 {
|
||||
apps: [PATH_LIMIT]u8
|
||||
if candidates[index] != "" && DirectoryExists(PathJoin(apps[:], candidates[index], "apps")) {
|
||||
@@ -143,7 +143,7 @@ AssetsRoot :: () -> string {
|
||||
return TextUntilNul(assets_root[:])
|
||||
}
|
||||
|
||||
// The path of one of Werkzeug's own files.
|
||||
// The path of one of Werk's own files.
|
||||
AssetPath :: (output: []u8, name: string) -> string {
|
||||
#if #defined(ANDROID_BUILD) {
|
||||
unused CopyCString(name, output)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// The Werkzeug profile: a name and picture, and the appearance every app
|
||||
// The Werk profile: a name and picture, and the appearance every app
|
||||
// shares. It lives in the private profile/settings.txt file.
|
||||
#import "std/byte_text_linux"
|
||||
#import "std/c_string"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// WebAssembly program. Emscripten supplies only the generated JS loader.
|
||||
#import "web"
|
||||
|
||||
CacheName :: "werkzeug-v1";
|
||||
CacheName :: "werk-v1";
|
||||
FetchJob :: struct {
|
||||
active: bool
|
||||
immutable: bool
|
||||
|
||||
@@ -22,12 +22,13 @@ Auth :: #import "daochi_client/auth";
|
||||
#import "records"
|
||||
|
||||
SYNC_APP :: "auth"
|
||||
// Registered under Werk's former name; see ACCOUNT_APP.
|
||||
SYNC_COLLECTION :: "private.werkzeug.v1.auth"
|
||||
SYNC_UPLOAD_LIMIT :: 100
|
||||
SYNC_BODY_LIMIT :: 524288
|
||||
SYNC_OUTPUT_LIMIT :: 1048576
|
||||
// Changes reach the server shortly after they are made, and other
|
||||
// devices' changes arrive at least this often while Werkzeug is open.
|
||||
// devices' changes arrive at least this often while Werk is open.
|
||||
SYNC_INTERVAL :: 300.0
|
||||
SYNC_DELAY :: 2.0
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Werkzeug's own screens: the home screen of apps, the profile, and the bar
|
||||
// Werk's own screens: the home screen of apps, the profile, and the bar
|
||||
// above the app that is open.
|
||||
#import "std/byte_text_linux"
|
||||
#import "std/text_buffer"
|
||||
@@ -34,7 +34,7 @@ FieldState :: struct {
|
||||
|
||||
screen: s32;
|
||||
open_app: s32 = -1;
|
||||
// One app on its own, without Werkzeug's bar, as in a page that embeds it.
|
||||
// One app on its own, without Werk's bar, as in a page that embeds it.
|
||||
mini: bool;
|
||||
name_field: FieldState;
|
||||
code_field: FieldState;
|
||||
@@ -52,7 +52,7 @@ profile_height: float32;
|
||||
typed: [256]u8;
|
||||
keyboard_wanted: bool;
|
||||
|
||||
WerkzeugStart :: () {
|
||||
WerkStart :: () {
|
||||
MigratePassData()
|
||||
LoadProfile()
|
||||
LoadApps()
|
||||
@@ -63,7 +63,7 @@ WerkzeugStart :: () {
|
||||
|
||||
// Opens an app by id at start, such as from the page address. In mini mode
|
||||
// it fills the window and there is no way home.
|
||||
WerkzeugOpen :: (id: string, alone: bool) -> bool {
|
||||
WerkOpen :: (id: string, alone: bool) -> bool {
|
||||
index: s32 = 0
|
||||
while index < AppCount() {
|
||||
if AppId(index) == id {
|
||||
@@ -78,7 +78,7 @@ WerkzeugOpen :: (id: string, alone: bool) -> bool {
|
||||
}
|
||||
|
||||
// Whether the touch keyboard should show.
|
||||
WerkzeugKeyboard :: () -> bool {
|
||||
WerkKeyboard :: () -> bool {
|
||||
return keyboard_wanted
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ OpenHome :: () {
|
||||
|
||||
TopBar :: (session: Session, viewport: Rectangle) {
|
||||
bar := Rectangle.{viewport.x, viewport.y, viewport.width, BAR_HEIGHT}
|
||||
title := "Werkzeug"
|
||||
title := "Werk"
|
||||
left := bar.x + 16.0
|
||||
if screen != SCREEN_HOME {
|
||||
back := ButtonProps.{.key = cast(u64)10, .id = 10, .label = "Home",
|
||||
@@ -550,7 +550,7 @@ AppScreen :: (session: Session, area: Rectangle, key: s32, modifiers: s32, input
|
||||
}
|
||||
|
||||
#program_export
|
||||
WerkzeugFrame :: (session: Session, viewport: Rectangle) -> s32 {
|
||||
WerkFrame :: (session: Session, viewport: Rectangle) -> s32 {
|
||||
ApplyTheme()
|
||||
ClipboardTick()
|
||||
#if !#defined(PLATFORM_WEB) {
|
||||
@@ -63,7 +63,7 @@ SecurePollHost :: (output: []u8) -> s32 {
|
||||
return status
|
||||
}
|
||||
|
||||
// The rest of the Werkzeug interface, which Pass's state does not use.
|
||||
// The rest of the Werk interface, which Pass's state does not use.
|
||||
#import "session"
|
||||
#import "geometry"
|
||||
#import "text_input_props"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Two Werkzeug devices against a local Daochi node: one creates the account
|
||||
// Two Werk devices against a local Daochi node: one creates the account
|
||||
// and an Auth record, the other connects with the shown code and receives
|
||||
// it; a removal then reaches the second device too. scripts/sync_e2e_test.sh
|
||||
// runs each step in its own process with its own WERKZEUG_DATA.
|
||||
// runs each step in its own process with its own WERK_DATA.
|
||||
#import "std/byte_text_linux"
|
||||
#import "std/c_string"
|
||||
#import "std/text_buffer"
|
||||
|
||||
@@ -32,7 +32,7 @@ else
|
||||
fi
|
||||
sed -E -i "s/versionName \"[^\"]+\"/versionName \"$release_version\"/" "$gradle_file"
|
||||
sed -E -i "s/^([[:space:]]*)versionCode [0-9]+/\1versionCode $release_code/" "$gradle_file"
|
||||
metainfo=packaging/linux/xyz.waozi.werkzeug.appdata.xml
|
||||
metainfo=packaging/linux/xyz.waozi.werk.appdata.xml
|
||||
if ! grep -F "<release version=\"$release_version\"" "$metainfo" >/dev/null; then
|
||||
sed -E -i "s#<releases>#<releases><release version=\"$release_version\" date=\"$release_date\"/>#" "$metainfo"
|
||||
fi
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/downloads/pass-cli-linux-amd64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/pass-cli-linux-amd64.tar.gz 302
|
||||
/downloads/pass-cli-linux-arm64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/pass-cli-linux-arm64.tar.gz 302
|
||||
/downloads/werkzeug-linux-amd64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/werkzeug-linux-amd64.tar.gz 302
|
||||
/downloads/werkzeug-linux-arm64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/werkzeug-linux-arm64.tar.gz 302
|
||||
/downloads/pass-gui-linux-amd64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/werkzeug-linux-amd64.tar.gz 302
|
||||
/downloads/pass-gui-linux-arm64.tar.gz https://github.com/waozixyz/pass/releases/latest/download/werkzeug-linux-arm64.tar.gz 302
|
||||
/downloads/werkzeug-android.apk https://github.com/waozixyz/pass/releases/latest/download/werkzeug-android.apk 302
|
||||
/downloads/pass-android.apk https://github.com/waozixyz/pass/releases/latest/download/werkzeug-android.apk 302
|
||||
/downloads/pass-cli-linux-amd64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/pass-cli-linux-amd64.tar.gz 302
|
||||
/downloads/pass-cli-linux-arm64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/pass-cli-linux-arm64.tar.gz 302
|
||||
/downloads/werk-linux-amd64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/werk-linux-amd64.tar.gz 302
|
||||
/downloads/werk-linux-arm64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/werk-linux-arm64.tar.gz 302
|
||||
/downloads/pass-gui-linux-amd64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/werk-linux-amd64.tar.gz 302
|
||||
/downloads/pass-gui-linux-arm64.tar.gz https://github.com/waozixyz/werk/releases/latest/download/werk-linux-arm64.tar.gz 302
|
||||
/downloads/werk-android.apk https://github.com/waozixyz/werk/releases/latest/download/werk-android.apk 302
|
||||
/downloads/pass-android.apk https://github.com/waozixyz/werk/releases/latest/download/werk-android.apk 302
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<title>Werkzeug</title>
|
||||
<title>Werk</title>
|
||||
<meta name="theme-color" content="#f7ede2">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png">
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 30 KiB |
@@ -3,20 +3,20 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Werkzeug — Small private tools</title>
|
||||
<title>Werk — Small private tools</title>
|
||||
<meta name="description" content="Small private tools in one app: Pass recreates your passwords without a vault, Auth shows your two-factor codes, and Calculator and Clock cover the rest. Free, open source, and available for web, Android, and desktop.">
|
||||
<link rel="canonical" href="https://pass.waozi.xyz/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://pass.waozi.xyz/">
|
||||
<meta property="og:site_name" content="Werkzeug">
|
||||
<meta property="og:title" content="Werkzeug — Small private tools">
|
||||
<meta property="og:site_name" content="Werk">
|
||||
<meta property="og:title" content="Werk — Small private tools">
|
||||
<meta property="og:description" content="Passwords, two-factor codes, a calculator and a clock. Small private tools that run on your device.">
|
||||
<meta property="og:image" content="https://pass.waozi.xyz/images/social.png">
|
||||
<meta property="og:image:width" content="1536">
|
||||
<meta property="og:image:height" content="1024">
|
||||
<meta property="og:image:alt" content="Werkzeug purple asterisk and keyhole logo.">
|
||||
<meta property="og:image:alt" content="Werk purple asterisk and keyhole logo.">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Werkzeug — Small private tools">
|
||||
<meta name="twitter:title" content="Werk — Small private tools">
|
||||
<meta name="twitter:description" content="Passwords, two-factor codes, a calculator and a clock, on your device.">
|
||||
<meta name="twitter:image" content="https://pass.waozi.xyz/images/social.png">
|
||||
<meta name="theme-color" content="#f7f3eb">
|
||||
@@ -29,7 +29,7 @@
|
||||
<a class="skip-link" href="#main-content">Skip to content</a>
|
||||
<header class="site-header">
|
||||
<a class="site-return" href="https://waozi.xyz/#apps">← Waozi</a>
|
||||
<a class="brand" href="/" aria-label="Werkzeug home"><img class="pass-logo" src="/icons/icon-192.png" width="36" height="36" alt="">Werkzeug</a>
|
||||
<a class="brand" href="/" aria-label="Werk home"><img class="pass-logo" src="/icons/icon-192.png" width="36" height="36" alt="">Werk</a>
|
||||
<nav class="site-nav" aria-label="Main navigation"><a href="#how-it-works">How it works</a><a href="#downloads">Download</a><a href="https://inbe.waozi.xyz">Inbe ↗</a></nav>
|
||||
</header>
|
||||
<main class="container" id="main-content">
|
||||
@@ -39,8 +39,8 @@
|
||||
<h1 id="hero-title">Small tools.<br>Kept private.</h1>
|
||||
<p class="hero-lede">Pass, Auth, Calculator and Clock, each its own app on one home screen.<br>Your passwords and codes are made on your device.</p>
|
||||
<div class="actions"><a class="button button-primary" href="/app/">Full Version <span aria-hidden="true">→</span></a><a class="button" href="#downloads">Download</a></div>
|
||||
<nav class="download-shortcuts" aria-label="Get Werkzeug"><a class="text-link" href="/downloads/pass-android.apk">Direct APK</a><a class="text-link" href="https://github.com/waozixyz/pass/releases">GitHub Releases ↗</a><a class="text-link" href="https://waozi.itch.io/pass">itch.io ↗</a></nav>
|
||||
<div class="platforms"><a class="source" href="https://github.com/waozixyz/pass">Open source ↗</a><span>Web</span><span>Android</span><span>Desktop & CLI</span></div>
|
||||
<nav class="download-shortcuts" aria-label="Get Werk"><a class="text-link" href="/downloads/pass-android.apk">Direct APK</a><a class="text-link" href="https://github.com/waozixyz/werk/releases">GitHub Releases ↗</a><a class="text-link" href="https://waozi.itch.io/werk">itch.io ↗</a></nav>
|
||||
<div class="platforms"><a class="source" href="https://github.com/waozixyz/werk">Open source ↗</a><span>Web</span><span>Android</span><span>Desktop & CLI</span></div>
|
||||
<p class="small-note">Free to use · Runs on your device</p>
|
||||
</div>
|
||||
<figure class="hero-art"><img src="/images/mountain.webp" width="1536" height="1024" alt="Fine ink-drawn mountain peaks beneath a terracotta sun" fetchpriority="high"><figcaption>Same details.<br>Same password.<br>Anytime.</figcaption></figure>
|
||||
@@ -61,8 +61,8 @@
|
||||
<section class="downloads-section section" id="downloads" aria-labelledby="downloads-title">
|
||||
<div class="section-heading">
|
||||
<p class="section-eyebrow"><span class="dot"></span>Download</p>
|
||||
<h2 id="downloads-title">Choose your Werkzeug build.</h2>
|
||||
<p>Version ${version}. Every package is covered by the release <a href="https://github.com/waozixyz/pass/releases/latest/download/SHA256SUMS">SHA256SUMS</a> checksums.</p>
|
||||
<h2 id="downloads-title">Choose your Werk build.</h2>
|
||||
<p>Version ${version}. Every package is covered by the release <a href="https://github.com/waozixyz/werk/releases/latest/download/SHA256SUMS">SHA256SUMS</a> checksums.</p>
|
||||
</div>
|
||||
<div class="downloads-board">
|
||||
<article class="download-platform">
|
||||
@@ -83,10 +83,10 @@
|
||||
<h3>Desktop GUI</h3>
|
||||
<p>Visual controls, secure masked input, built-in self-updates, and clipboard clearing.</p>
|
||||
<nav class="download-pills" aria-label="Desktop downloads">
|
||||
<a class="is-primary" href="https://github.com/waozixyz/pass/releases/latest/download/werkzeug-${version}-x86_64.AppImage">AppImage x86_64</a>
|
||||
<a href="https://github.com/waozixyz/pass/releases/latest/download/werkzeug-${version}-aarch64.AppImage">AppImage ARM64</a>
|
||||
<a href="https://github.com/waozixyz/pass/releases/latest/download/werkzeug_${version}_amd64.deb">.deb amd64</a>
|
||||
<a href="https://github.com/waozixyz/pass/releases/latest/download/werkzeug_${version}_arm64.deb">.deb arm64</a>
|
||||
<a class="is-primary" href="https://github.com/waozixyz/werk/releases/latest/download/werk-${version}-x86_64.AppImage">AppImage x86_64</a>
|
||||
<a href="https://github.com/waozixyz/werk/releases/latest/download/werk-${version}-aarch64.AppImage">AppImage ARM64</a>
|
||||
<a href="https://github.com/waozixyz/werk/releases/latest/download/werk_${version}_amd64.deb">.deb amd64</a>
|
||||
<a href="https://github.com/waozixyz/werk/releases/latest/download/werk_${version}_arm64.deb">.deb arm64</a>
|
||||
<a href="/downloads/pass-gui-linux-amd64.tar.gz">Tarball x86_64</a>
|
||||
<a href="/downloads/pass-gui-linux-arm64.tar.gz">Tarball ARM64</a>
|
||||
</nav>
|
||||
@@ -100,7 +100,7 @@
|
||||
<nav class="download-pills" aria-label="CLI downloads">
|
||||
<a class="is-primary" href="/downloads/pass-cli-linux-amd64.tar.gz">Linux x86_64</a>
|
||||
<a href="/downloads/pass-cli-linux-arm64.tar.gz">Linux ARM64</a>
|
||||
<a href="https://github.com/waozixyz/pass/releases">All releases ↗</a>
|
||||
<a href="https://github.com/waozixyz/werk/releases">All releases ↗</a>
|
||||
</nav>
|
||||
</div>
|
||||
</article>
|
||||
@@ -108,10 +108,10 @@
|
||||
<div class="download-platform-icon"><img src="/icons/wasm.png" alt=""></div>
|
||||
<div class="download-platform-body">
|
||||
<h3>Web app</h3>
|
||||
<p>Open Werkzeug in your browser. Passwords and codes are made entirely on your device.</p>
|
||||
<p>Open Werk in your browser. Passwords and codes are made entirely on your device.</p>
|
||||
<nav class="download-pills" aria-label="Web app links">
|
||||
<a class="is-primary" href="/app/">Full Version</a>
|
||||
<a href="https://waozi.itch.io/pass" target="_blank" rel="noopener">itch.io</a>
|
||||
<a href="https://waozi.itch.io/werk" target="_blank" rel="noopener">itch.io</a>
|
||||
</nav>
|
||||
</div>
|
||||
</article>
|
||||
@@ -122,7 +122,7 @@
|
||||
<div class="section-heading"><p class="eyebrow">Only what you need</p><h2 id="features-title">A smaller kind of tool.</h2></div>
|
||||
<div class="features-grid"><article><h3>Stateless</h3><p>Your passwords are derived from your details, rather than kept in a password vault.</p></article><article><h3>Local</h3><p>Generation runs on your device. No remote service is needed to calculate a password.</p></article><article><h3>Portable</h3><p>Use the same generator on Android, desktop, in your browser, or from a terminal.</p></article><article><h3>Open source</h3><p>Read the code, follow releases, and make it your own. Available under the BSD 3-Clause license.</p></article></div>
|
||||
</section>
|
||||
<section class="privacy-section section" id="privacy" aria-labelledby="privacy-title"><div><p class="eyebrow">Built around your privacy</p><h2 id="privacy-title">Your master password<br>stays yours.</h2></div><div><p>The browser and desktop apps derive passwords locally. The website has no analytics, accounts, or backend API. The apps use the Internet only for optional sync, which encrypts everything on your device first.</p><a class="text-link" href="https://github.com/waozixyz/pass">Read the source →</a></div></section>
|
||||
<section class="privacy-section section" id="privacy" aria-labelledby="privacy-title"><div><p class="eyebrow">Built around your privacy</p><h2 id="privacy-title">Your master password<br>stays yours.</h2></div><div><p>The browser and desktop apps derive passwords locally. The website has no analytics, accounts, or backend API. The apps use the Internet only for optional sync, which encrypts everything on your device first.</p><a class="text-link" href="https://github.com/waozixyz/werk">Read the source →</a></div></section>
|
||||
<section class="questions section" aria-labelledby="questions-title"><div class="section-heading"><p class="eyebrow">A few things to know</p><h2 id="questions-title">Before you begin.</h2></div>
|
||||
<details><summary>Is Pass a password manager?</summary><p>Pass is a stateless generator. It recreates a password from your inputs instead of storing a vault of passwords. App profiles can help you remember site settings; they are separate from password generation.</p></details>
|
||||
<details><summary>What must I remember?</summary><p>Your master password and the exact site, login, and generation settings. A change to any input changes the output. There is no master-password reset service.</p></details>
|
||||
@@ -130,6 +130,6 @@
|
||||
<details><summary>Does this work with LessPass?</summary><p>Pass is an independent implementation of the LessPass generation algorithm. Matching inputs and compatible settings produce the same result. Pass is not affiliated with or endorsed by the LessPass project.</p></details>
|
||||
</section>
|
||||
</main>
|
||||
<footer class="site-footer container"><div class="footer-top"><p class="footer-quote">Simple tools for a more private life.</p><p class="footer-about">Werkzeug<br>Small tools.<br>Kept private.</p></div><nav class="footer-links" aria-label="More information"><a href="https://waozi.xyz">Made by Waozi</a><a href="https://github.com/waozixyz/pass">Source</a><a href="https://github.com/waozixyz/pass/releases">Releases</a><a href="#privacy">Privacy</a><a href="https://waozi.itch.io/pass">itch.io</a><a href="https://inbe.waozi.xyz">Discover Inner Breeze ↗</a></nav><div class="footer-bottom"><span>© Waozi</span><span>Version ${version} · Made with care.</span></div></footer>
|
||||
<footer class="site-footer container"><div class="footer-top"><p class="footer-quote">Simple tools for a more private life.</p><p class="footer-about">Werk<br>Small tools.<br>Kept private.</p></div><nav class="footer-links" aria-label="More information"><a href="https://waozi.xyz">Made by Waozi</a><a href="https://github.com/waozixyz/werk">Source</a><a href="https://github.com/waozixyz/werk/releases">Releases</a><a href="#privacy">Privacy</a><a href="https://waozi.itch.io/werk">itch.io</a><a href="https://inbe.waozi.xyz">Discover Inner Breeze ↗</a></nav><div class="footer-bottom"><span>© Waozi</span><span>Version ${version} · Made with care.</span></div></footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Werkzeug",
|
||||
"short_name": "Werkzeug",
|
||||
"name": "Werk",
|
||||
"short_name": "Werk",
|
||||
"description": "Small private tools: passwords, two-factor codes, a calculator and a clock.",
|
||||
"start_url": "/app/",
|
||||
"scope": "/app/",
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
],
|
||||
"root": {
|
||||
"dependencies": {"daochi_client": "p96e1f539ccb91af5", "kryon": "p0593ae746da1eed9", "liboqs": "pfb3df7cb222b1bdc", "mingcute": "p56788fa3dab3e73a", "monocypher": "p4266498010aa1745", "oqs": "p55635fc8976895a9"},
|
||||
"name": "Werkzeug"
|
||||
"name": "Werk"
|
||||
},
|
||||
"toolchain": {
|
||||
"commit": "201be1072cfb2ad59b4060f8579db36f6848b8cb",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
tool = "kryon"
|
||||
name = "Werkzeug"
|
||||
name = "Werk"
|
||||
entry = "src/desktop.zi"
|
||||
module_roots = ["src", "shared", "apps/pass"]
|
||||
|
||||
@@ -13,7 +13,7 @@ git = "https://github.com/kryonlabs/kryon.git"
|
||||
ref = "master"
|
||||
|
||||
[install]
|
||||
bin = "werkzeug"
|
||||
bin = "werk"
|
||||
|
||||
[tool.kryon]
|
||||
default_profile = "desktop"
|
||||
|
||||