-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpublish.bat
68 lines (57 loc) · 1.73 KB
/
publish.bat
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@echo off
set DIST_DIR="D:\Code_Project\TypeScript\eide\res\tools"
if not exist %DIST_DIR% (
set DIST_DIR=".\dist"
)
echo.
echo =======================================
echo Output Folder: %DIST_DIR%
echo =======================================
::echo.
::echo clean projects ...
::dotnet clean
::del /Q /S ".\dist\"
:: for win-x64
echo.
echo --- publish for win-x64 ---
echo.
dotnet publish ./eide_tools.sln -o %DIST_DIR%/win32/unify_builder^
-c Release --no-self-contained^
-r win-x64^
--framework net6.0^
-p:PublishReadyToRun=true^
/property:GenerateFullPaths=true^
/consoleloggerparameters:NoSummary
:: for linux-x64
echo.
echo --- publish for linux-x64 ---
echo.
dotnet publish ./eide_tools.sln -o %DIST_DIR%/linux/unify_builder^
-c Release --no-self-contained^
-r linux-x64^
--framework net6.0^
/property:GenerateFullPaths=true^
/consoleloggerparameters:NoSummary
:: for osx-x64
echo.
echo --- publish for osx-x64 ---
echo.
dotnet publish ./eide_tools.sln -o %DIST_DIR%/darwin/unify_builder/x86_64^
-c Release --no-self-contained^
-r osx-x64^
--framework net6.0^
/property:GenerateFullPaths=true^
/consoleloggerparameters:NoSummary
:: for osx-arm64
echo.
echo --- publish for osx-arm64 ---
echo.
dotnet publish ./eide_tools.sln -o %DIST_DIR%/darwin/unify_builder/arm64^
-c Release --no-self-contained^
-r osx-arm64^
--framework net6.0^
/property:GenerateFullPaths=true^
/consoleloggerparameters:NoSummary
echo.
echo all done !
echo.