..
2025-08-26 21:47:52 +07:00
2025-08-26 21:47:52 +07:00
2025-08-25 03:57:04 +07:00
2025-08-25 06:21:12 +07:00
2025-08-25 06:21:12 +07:00
2025-08-25 03:57:04 +07:00
2025-08-26 21:47:52 +07:00
2025-08-26 21:47:52 +07:00
2025-08-26 21:47:52 +07:00
2025-08-25 03:57:04 +07:00
2025-08-25 06:21:12 +07:00
2025-08-26 21:47:52 +07:00
2025-08-25 09:42:11 +07:00
2025-08-26 21:47:52 +07:00
Scripts
This folder has small helpers for build, CI, and router install. Keep it simple; use only what you need.
Quick start (recommended)
- Start your Gitea runner on this Windows PC
./scripts/act_runner.ps1
If first-time, it prints the exact register command. Run it once, check labels include windows:host,self-hosted, then rerun the script.
- Tag and push to trigger CI
git tag v0.1.0
git push origin v0.1.0
- Install on the router
Use the release asset URL from your Gitea Release page:
wget -O- https://<gitea>/<owner>/<repo>/releases/download/v0.1.0/wakey-rootfs-v0.1.0-armv7-unknown-linux-musleabihf.tgz | tar -xz -C /
chmod +x /etc/init.d/wakey && /etc/init.d/wakey enable && /etc/init.d/wakey restart
Alternatively, use the updater on the router to fetch the latest automatically:
WAKEY_HOST=git.ldlda.com WAKEY_OWNER=lda WAKEY_REPO=wakey sh /etc/ldlda_help/update_wakey.sh
Scripts overview
act_runner.ps1— Start/seed the local Gitea runner. Use-Attachto see logs,-ForceConfigureto register non-interactively.dev_push.ps1— Fast dev loop: build + upload to router. Usage:./scripts/dev_push.ps1 -Pass <password> [-HostName <ip>] [-RemotePath </root/.bin/wakey>] [-Restart] [-Quiet]- Uploads to
<RemotePath>.tmpthen atomically moves into place;-Restartrestarts the service;-Quietsilences MOTD.
cross_build.ps1— Simple wrapper forcargo buildper target (default: armv7-unknown-linux-musleabihf).package_rootfs.ps1— Producesdist/wakey-rootfs-<version>-<target>.tgzwith/root/.bin/wakeyand/etc/init.d/*.package.ps1— Dev bundle with binaries + init scripts (not a rootfs layout).publish.ps1— Optional version bump + build + tag (andcargo publishonly if you pass-Publish).
CI (Gitea)
- Defined in
.gitea/workflows/release.yml. - Runs on your
self-hosted, windowsrunner. - Steps: cross build → package rootfs → upload artifact (v3) → publish a release and attach tgz.
- Requires
secrets.GITEA_TOKENin the repo to publish the release.
Local build/install (manual path)
# Build (requires cross installed)
./scripts/cross_build.ps1 -Release -Targets armv7-unknown-linux-musleabihf
# Package rootfs
./scripts/package_rootfs.ps1 -Version v0.1.0 -Target armv7-unknown-linux-musleabihf
# Copy to router (PowerShell)
scp -O .\dist\wakey-rootfs-v0.1.0-armv7-unknown-linux-musleabihf.tgz root@<router-ip>:/tmp/wakey.tgz
# On the router
tar -xz -f /tmp/wakey.tgz -C /
chmod +x /etc/init.d/wakey && /etc/init.d/wakey enable && /etc/init.d/wakey restart
That’s it. Keep the flow: start runner → tag push → install.