diff options
| author | Stefan Boberg <[email protected]> | 2026-03-05 14:31:27 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-05 14:31:27 +0100 |
| commit | 2f0d60cb431ffefecf3e0a383528691be74af21b (patch) | |
| tree | 283ed399db0eacc9440f9b0fdaae35f01f96b3df /repo | |
| parent | 5.7.22-pre0 (diff) | |
| download | zen-2f0d60cb431ffefecf3e0a383528691be74af21b.tar.xz zen-2f0d60cb431ffefecf3e0a383528691be74af21b.zip | |
oidctoken tool package (#810)
* added OidcToken binary to the build process. The binary is mirrored from p4 and is placed next to the output of the build process. It is also placed in the release zip archives.
* also fixed issue with Linux symbol stripping which was introduced in toolchain changes yesterday
Diffstat (limited to 'repo')
| -rw-r--r-- | repo/packages/o/oidctoken/xmake.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/repo/packages/o/oidctoken/xmake.lua b/repo/packages/o/oidctoken/xmake.lua new file mode 100644 index 000000000..76360e7bf --- /dev/null +++ b/repo/packages/o/oidctoken/xmake.lua @@ -0,0 +1,23 @@ +package("oidctoken") + set_description("OidcToken - OIDC token helper binary") + set_sourcedir(path.join(os.scriptdir(), "../../../../thirdparty/oidctoken")) + + on_install(function (package) + if is_plat("windows") then + os.cp("bin/win-x64/OidcToken.exe", package:installdir("bin")) + elseif is_plat("linux") then + os.cp("bin/linux-x64/OidcToken", package:installdir("bin")) + os.exec("chmod 755 %s", package:installdir("bin", "OidcToken")) + elseif is_plat("macosx") then + os.cp("bin/osx-x64/OidcToken", package:installdir("bin")) + os.exec("chmod 755 %s", package:installdir("bin", "OidcToken")) + end + end) + + on_test(function (package) + if is_plat("windows") then + os.run("%s --help", package:installdir("bin", "OidcToken.exe")) + else + os.run("%s --help", package:installdir("bin", "OidcToken")) + end + end) |