Skip to content

Commit

Permalink
make deltachat-rpc-server executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed May 10, 2024
1 parent 5eff575 commit 335ba15
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import subprocess
from sys import argv
from os import path, makedirs, chdir
from os import path, makedirs, chdir, chmod, stat
import json
from shutil import copy
from src.make_package import write_package_json
Expand Down Expand Up @@ -37,7 +37,9 @@
# copy binary it over

my_binary_name = path.basename(binary_path)
copy(binary_path, platform_path + "/" + my_binary_name)
new_binary_path = platform_path + "/" + my_binary_name
copy(binary_path, new_binary_path)
chmod(new_binary_path, 0o555) # everyone can read & execute, nobody can write

# make a package.json for it

Expand Down

0 comments on commit 335ba15

Please sign in to comment.