summaryrefslogtreecommitdiff
path: root/branding/templates
diff options
context:
space:
mode:
authorkali <kali@win>2020-10-27 23:38:13 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-11-04 12:33:29 +0100
commit3dc345bc2b9f600974df6acce84ab671ab8c8e5d (patch)
treed7b050c0acb26a8cfb5678dfd7f3131767440963 /branding/templates
parentbfd3419b4fafaad1f9f87bda0810fe4f7c73578b (diff)
[pkg] sign windows binaries
- Resolves: #383
Diffstat (limited to 'branding/templates')
-rw-r--r--branding/templates/windows/sign.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/branding/templates/windows/sign.py b/branding/templates/windows/sign.py
deleted file mode 100644
index 53b89a8..0000000
--- a/branding/templates/windows/sign.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env python3
-"""
-This script is expected to be called from the main makefile, that should pass
-the content of the WIN_CERT_PASS variable as the second argument.
-"""
-import subprocess
-import os
-import sys
-
-WIN_CERT_PATH = sys.argv[1]
-WIN_CERT_PASS = sys.argv[2]
-SIGNTOOL = "signtool"
-
-VERSION = subprocess.run(
- 'git describe --tags',
- stdout=subprocess.PIPE).stdout.strip()
-
-installer = "RiseupVPN-" + str(VERSION, 'utf-8') + '.exe'
-target = str(os.path.join(os.path.abspath('.'), 'dist', installer))
-cmd = [SIGNTOOL, "sign", "/f", WIN_CERT_PATH, "/p", WIN_CERT_PASS, target]
-subprocess.run(cmd)