pull/11/head
SpenserCai 2023-08-24 11:26:01 +08:00
parent 6136f8a2f0
commit 0035d1dbeb
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Author: SpenserCai
Date: 2023-08-23 23:04:55
version:
LastEditors: SpenserCai
LastEditTime: 2023-08-24 09:31:35
LastEditTime: 2023-08-24 11:25:54
Description: file content
'''
import os
@ -12,5 +12,7 @@ import urllib.request
from tqdm import tqdm
from scripts.base import *
init_base()
if (not check_bin()) or need_update():
download_bin()

View File

@ -3,7 +3,7 @@ Author: SpenserCai
Date: 2023-08-23 23:12:27
version:
LastEditors: SpenserCai
LastEditTime: 2023-08-24 11:23:23
LastEditTime: 2023-08-24 11:25:37
Description: file content
'''
import os
@ -13,9 +13,13 @@ import sys
import tarfile
import shutil
bin_path = os.path.join(scripts.basedir(), "bin")
bin_path = None
api_url = "https://api.github.com/repos/SpenserCai/sd-webui-discord/releases/latest"
def init_base():
global bin_path
bin_path = os.path.join(scripts.basedir(), "bin")
def get_bin_process_path():
if sys.platform == "win32":
return os.path.join(bin_path, "sd-webui-discord.exe")