Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ff121ac4a
|
||
|
|
37e52165fd
|
||
|
|
9713fe028d
|
||
|
|
7f335e3a26
|
||
|
|
323af22356
|
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -35,4 +35,28 @@ for rid in RIDS:
|
||||
raise OSError("Build error")
|
||||
|
||||
print(f"==> ZIPPING: {rid}")
|
||||
if target_os == "win":
|
||||
os.chdir("./pub")
|
||||
os.system(rf"zip -r {rid}.zip {rid} >> /dev/null")
|
||||
os.chdir("..")
|
||||
continue
|
||||
|
||||
os.system(rf"tar czvf ./pub/{rid}.tar.gz -C ./pub/ {rid} >> /dev/null")
|
||||
|
||||
os.chdir("pub")
|
||||
|
||||
while True:
|
||||
upload = input(f"Do you want to upload the release assets? Please ensure you have created the tag \"{CURRENT_TIMESTAMP}\" first! (Y/N)")
|
||||
if upload.lower() not in ["y", "n"]:
|
||||
print("Please enter either Y or N.")
|
||||
continue
|
||||
|
||||
if upload.lower() == "y":
|
||||
break
|
||||
else:
|
||||
exit()
|
||||
|
||||
print("doing the thing")
|
||||
|
||||
os.system(rf"glab release upload {CURRENT_TIMESTAMP} ./*.tar.gz")
|
||||
os.system(rf"glab release upload {CURRENT_TIMESTAMP} ./*.zip")
|
||||
|
||||
Reference in New Issue
Block a user