From c1e9f198b1b6182eae0369e832e961c88a8b593c Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Tue, 24 Sep 2024 08:38:29 -0700 Subject: [PATCH] tweak buildruntime input dir & clarify build script --- Dockerfile.buildruntime | 2 +- scripts/build-release.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile.buildruntime b/Dockerfile.buildruntime index cc8c3ddd..6b5bf791 100644 --- a/Dockerfile.buildruntime +++ b/Dockerfile.buildruntime @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Bind readonly & copy files in to avoid modifying host files -WORKDIR /usr/src/kinode +WORKDIR /input # Set the default command to run the build script # TODO: once build is idempotent, remove the `rm -rf` line diff --git a/scripts/build-release.py b/scripts/build-release.py index e849cfdd..06c14b8b 100755 --- a/scripts/build-release.py +++ b/scripts/build-release.py @@ -48,7 +48,6 @@ def build_and_move(feature, tmp_dir, architecture, os_name): zip_path = os.path.join(tmp_dir, zip_name) with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zipf: zipf.write(dest_path, os.path.basename(dest_path)) - os.chmod(zip_path, 0o664) # Remove the original binary os.remove(dest_path)