This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
publish.ps1
50 lines (50 loc) · 2.69 KB
/
publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dotnet publish -c release -r linux-x64
dotnet publish -c release -r win-x64
dotnet publish -c release -r win-x86
dotnet publish -c release -r osx-x64
dotnet publish -c release -r linux-arm64
dotnet publish -c release -r linux-arm
del exInstaller-*
cd "exInstaller/bin/Release/netcoreapp6.0/linux-arm/publish"
Remove-Item arduino-cli-runtimes/*_32bit -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*_*64* -Recurse -Force -Confirm:$false
7z a -ttar "../../../../../../exInstaller-linux-arm.tar"
cd "../../../../../.."
echo 7z a ./exInstaller-linux-arm.tar -tgzip ./exInstaller-linux-arm.tar.gz
echo del exInstaller-linux-arm.tar
cd "exInstaller/bin/Release/netcoreapp6.0/linux-arm64/publish"
Remove-Item arduino-cli-runtimes/*_32bit -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*_64bit -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*_ARM -Recurse -Force -Confirm:$false
7z a -ttar "../../../../../../exInstaller-linux-arm64.tar"
cd "../../../../../.."
echo 7z a ./exInstaller-linux-arm64.tar -tgzip ./exInstaller-linux-arm64.tar.gz
echo del exInstaller-linux-arm64.tar
cd "exInstaller/bin/Release/netcoreapp6.0/linux-x64/publish"
Remove-Item arduino-cli-runtimes/Win* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*ARM* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/mac* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/Linux_32bit -Recurse -Force -Confirm:$false
7z a -ttar "../../../../../../exInstaller-linux-x64.tar"
cd "../../../../../.."
echo 7z a ./exInstaller-linux-x64.tar -tgzip ./exInstaller-linux-x64.tar.gz
echo del exInstaller-linux-x64.tar
cd "exInstaller/bin/Release/netcoreapp6.0/win-x86/publish"
Remove-Item arduino-cli-runtimes/Linux* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/mac* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*_64bit -Recurse -Force -Confirm:$false
7z a -tzip "../../../../../../exInstaller-win-x86.zip"
cd "../../../../../.."
cd "exInstaller/bin/Release/netcoreapp6.0/win-x64/publish"
Remove-Item arduino-cli-runtimes/Linux* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/mac* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/*_32bit -Recurse -Force -Confirm:$false
7z a -tzip "../../../../../../exInstaller-win-x64.zip"
cd "../../../../../.."
cd "exInstaller/bin/Release/netcoreapp6.0/osx-x64/publish"
Remove-Item arduino-cli-runtimes/Linux* -Recurse -Force -Confirm:$false
Remove-Item arduino-cli-runtimes/Win* -Recurse -Force -Confirm:$false
7z a -ttar "../../../../../../exInstaller-osx-x64.tar"
cd "../../../../../.."
echo 7z a ./exInstaller-osx-x64.tar -tgzip ./exInstaller-osx-x64.tar.gz
echo del exInstaller-osx-x64.tar