mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-04-28 14:44:43 +00:00
* Rewrite build-version and all build-zip bash scripts to python * Add executable permissions to python build scripts * Use python build script for kmod in CI * Fix * Enhance kmod build script, add/fix docs, CI edits * Delete remaining build-zip bash scripts * Delete remaining build-zip bash scripts
24 lines
579 B
Python
Executable file
24 lines
579 B
Python
Executable file
#!/usr/bin/env python3
|
|
"""Print the effective build version for vpnhide artifacts.
|
|
|
|
Used by every packaging step (module.prop, APK versionName, CI
|
|
artifact names) so dev builds are unambiguously identifiable at a
|
|
glance. Called from `app/build.gradle.kts` on every Gradle build, so
|
|
stays on stdlib only — Gradle shouldn't need `uv` / external deps to
|
|
assemble the APK.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from build_lib import get_build_version
|
|
|
|
|
|
def main() -> int:
|
|
print(get_build_version())
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|