summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackages/aws-gateway-load-balancer-tunnel-handler/build.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/aws-gateway-load-balancer-tunnel-handler/build.py b/packages/aws-gateway-load-balancer-tunnel-handler/build.py
index c79b4f12..a8c75aab 100755
--- a/packages/aws-gateway-load-balancer-tunnel-handler/build.py
+++ b/packages/aws-gateway-load-balancer-tunnel-handler/build.py
@@ -6,10 +6,11 @@ from subprocess import run
def prepare_package() -> None:
- """Prepare a package for Noned
+ """Prepare a package
"""
install_file = Path('./debian/install')
- install_data = 'obj-x86_64-linux-gnu/gwlbtun usr/sbin'
+ install_data = 'obj-*-linux-gnu/gwlbtun usr/sbin'
+ install_file.touch()
install_file.write_text(install_data)
@@ -30,6 +31,8 @@ def build_package(package_name: str, package_ver: str) -> bool:
]
run(debmake_cmd)
+ prepare_package()
+
# build a package
run('debuild')
@@ -48,8 +51,6 @@ if __name__ == '__main__':
help='Version for the package')
args = arg_parser.parse_args()
- prepare_package()
-
if not build_package(args.package, args.version):
exit(1)