Skip to content

Commit

Permalink
fix make_package script
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed May 10, 2024
1 parent 40b33eb commit 66ebd25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deltachat-rpc-server/npm-package/scripts/src/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from .convert_platform import convert_cpu_arch_to_npm_cpu_arch, convert_os_to_npm_os

def write_package_json(platform_path, rust_target, my_binary_name):
[cpu_arch, vendor, os] = rust_target.split("-")
if len(rust_target.split("-")) == 3:
[cpu_arch, vendor, os] = rust_target.split("-")
else:
[cpu_arch, _, vendor, os] = rust_target.split("-")

# read version
tomlfile = open("../../Cargo.toml", 'rb')
Expand Down

0 comments on commit 66ebd25

Please sign in to comment.