Skip to content

Commit 67b4ad0

Browse files
committed
try fix the zip internal path
1 parent 56019df commit 67b4ad0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def get_current_version():
5050
BUNDLE_LIB_DIR = os.path.join(BUNDLE_DIR, "lib")
5151
# py platform directory
5252
BUNDLE_REQ_DIR = os.path.join(BUNDLE_DIR.format(platform="py"), "requirements")
53-
BUNDLE_ZIP_JSON = os.path.join(
54-
BUNDLE_DIR.format(platform="py"), f"{BUNDLE_NAME}-{TAG}.json"
55-
)
53+
BUNDLE_ZIP_JSON = os.path.join(BUNDLE_DIR.format(platform="py"), f"{BUNDLE_NAME}.json")
5654

5755
SOURCEDIR = "src"
5856
REQUIREMENTS_FILE = "requirements-modules.txt"
@@ -196,6 +194,7 @@ def do_the_zips():
196194
"""finally create the zip files for release"""
197195
# now do the zips
198196
for platform in ["py"] + PLATFORMS:
197+
in_path = BUNDLE_PATH_NAME.format(platform=PLATFORM_NAMES[platform])
199198
bun_dir = BUNDLE_DIR.format(platform=PLATFORM_NAMES[platform])
200199
zip_file = BUNDLE_ZIP.format(platform=PLATFORM_NAMES[platform])
201200
all_files = list_all_files(bun_dir)
@@ -204,7 +203,8 @@ def do_the_zips():
204203
# build_metadata = {"build-tools-version": build_tools_version}
205204
# bundle.comment = json.dumps(build_metadata).encode("utf-8")
206205
for ffile in all_files:
207-
bundle.write(os.path.join(bun_dir, ffile), ffile)
206+
in_file_path = in_path + "/" + ffile
207+
bundle.write(os.path.join(bun_dir, ffile), in_file_path)
208208

209209

210210
if __name__ == "__main__":

0 commit comments

Comments
 (0)