Skip to content

Commit

Permalink
Update appveyor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 1, 2024
1 parent bf909e9 commit 4b2f67a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Mirivoice.Desktop/appveyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ def write_appcast(appcast_os, appcast_rid, appcast_file):

os.system("del *.xml 2>&1")

os.system("dotnet restore Mirivoice.Desktop.csproj")
os.system("dotnet restore Mirivoice.Desktop.csproj -r win-x86")
os.system(
"dotnet publish Mirivoice.Desktop.csproj -c Release -r win-x86 --self-contained true -o bin/win-x86")
write_appcast("windows", "win-x86", "MiriVoice-win-x86.zip")

os.system("dotnet restore Mirivoice.Desktop.csproj -r win-x64")
os.system(
"dotnet publish Mirivoice.Desktop.csproj -c Release -r win-x64 --self-contained true -o bin/win-x64")
write_appcast("windows", "win-x64", "MiriVoice-win-x64.zip")
Expand All @@ -55,7 +56,7 @@ def write_appcast(appcast_os, appcast_rid, appcast_file):
os.system("rm LICENSE.txt")
os.system(
"sed -i '' \"s/0.0.0/%s/g\" Mirivoice.Desktop.csproj" % (appcast_ver))
os.system("dotnet restore Mirivoice.Desktop.csproj")
os.system("dotnet restore Mirivoice.Desktop.csproj -r osx-x64")
os.system("dotnet msbuild Mirivoice.Desktop.csproj -t:BundleApp -p:Configuration=Release -p:RuntimeIdentifier=osx-x64 -p:UseAppHost=true -p:OutputPath=../bin/osx-x64/")
os.system(
"cp mirivoice.icns bin/osx-x64/publish/MiriVoice.app/Contents/Resources/")
Expand All @@ -72,7 +73,7 @@ def write_appcast(appcast_os, appcast_rid, appcast_file):
else:
os.system("rm *.xml")

os.system("dotnet restore Mirivoice.Desktop.csproj ")
os.system("dotnet restore Mirivoice.Desktop.csproj -r linux-x64")
os.system(
"dotnet publish Mirivoice.Desktop.csproj -c Release -r linux-x64 --self-contained true -o bin/linux-x64")
os.system("chmod +x bin/linux-x64/MiriVoice")
Expand Down

0 comments on commit 4b2f67a

Please sign in to comment.