From 596eaf689f56a9ab98aad37f228c28c7b25489df Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 18 Dec 2022 19:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 1 + .../apps/com.gitee.uengine.runner.spark/files/Download.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/Download.py diff --git a/Makefile b/Makefile index 00d6354..07d90d0 100755 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ build: cp -rv builer.svg new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/ cp -rv api new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/ cp -rv Help new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/ + cp -rv Download.py new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/ cp -rv pkexec/* new-deb-build/usr/share/polkit-1/actions python3 RemovePycacheFile.py cp -rv new-deb-build /tmp/uengine-runner-builder diff --git a/new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/Download.py b/new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/Download.py new file mode 100755 index 0000000..5e27126 --- /dev/null +++ b/new-deb-build/opt/apps/com.gitee.uengine.runner.spark/files/Download.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +import sys +import base64 +import requests +print(requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3VlbmdpbmUtcnVubmVyL0luc3RhbGwucGhwP1ZlcnNpb249").decode("utf-8") + sys.argv[1]).text) \ No newline at end of file