Something went wrong. Try again.
Self-hosted, federated location sharing app and server that prioritizes user privacy and security
end-to-end-encryption location-sharing privacy self-hosted federated
Something went wrong. Try again.
PrivacyPin justfile
1.4 kB · 49 lines
Just
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950set shell := ["bash", "-cu"]# local-only deploy recipes (gitignored), see deploy/import? "deploy/local.justfile"APP_DIR := "app"SERVER_DIR := "server"alias srv := serveralias s := serveralias a := appdefault: @just --list# run the API server (prints the admin signup key at startup)server: cd "{{SERVER_DIR}}" && cargo run# build the app, install it and launch it on the connected device/emulatorapp: cd "{{APP_DIR}}" && sh tools/build_and_deploy.sh# start the emulator WITH a window (for manual testing)emu: cd "{{APP_DIR}}" && . ./android_env.sh && (emulator -avd privacypin_test -gpu swiftshader_indirect >/dev/null 2>&1 &) && adb wait-for-device && echo "Emulator ready."# start the emulator headless (for agents/CI)emu-headless: cd "{{APP_DIR}}" && sh tools/emulator_start.shemu-stop: cd "{{APP_DIR}}" && sh tools/emulator_stop.sh# grant all app permissions via adb (skips the permission dialogs)perms: cd "{{APP_DIR}}" && sh tools/grant_permissions.sh# send a mock GPS fix to the emulatormock lat="45.5017" lon="-73.5673": cd "{{APP_DIR}}" && sh tools/mock_location.sh {{lat}} {{lon}}# tail the app's logslogs: cd "{{APP_DIR}}" && sh tools/logcat.sh# fake second user (curl): just peer create <key> | invite | accept <token> | send <id> | get <id>peer *args: sh "{{APP_DIR}}/tools/peer.sh" {{args}}