2 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Library</OutputType>
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
+25 -1
View File
@@ -35,4 +35,28 @@ for rid in RIDS:
raise OSError("Build error") raise OSError("Build error")
print(f"==> ZIPPING: {rid}") print(f"==> ZIPPING: {rid}")
os.system(rf"tar czvf ./pub/{rid}.tar.gz -C ./pub/ {rid} >> /dev/null") 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")