From 8fda8a2d98cc7f482800333e14a82c505646fc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Tue, 24 Dec 2024 12:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E6=89=93?= =?UTF-8?q?=E5=8C=85agent=E7=9A=84=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tools/pack-agent.bat | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Tools/pack-agent.bat diff --git a/Tools/pack-agent.bat b/Tools/pack-agent.bat new file mode 100644 index 00000000..1298a729 --- /dev/null +++ b/Tools/pack-agent.bat @@ -0,0 +1,64 @@ +set base=..\Bin\Agent + +del %base%\*.zip /f/q +del %base%\*.tar.gz /f/q + +pushd %base%\net9.0 +set name=staragent90 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\net8.0 +set name=staragent80 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\net7.0 +set name=staragent70 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\net6.0 +set name=staragent60 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\net5.0 +set name=staragent50 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\netcoreapp3.1 +set name=staragent31 +bash -c "tar -czf %name%.tar.gz -- *.exe *.dll *.runtimeconfig.json" +move %name%.tar.gz ..\ +bash -c "zip -9 %name%.zip -- *.exe *.dll *.runtimeconfig.json" +move %name%.zip ..\ +popd + +pushd %base%\net461 +set name=staragent461 +bash -c "zip -9 %name%.zip -- *.exe *.dll StarAgent.exe.config" +move %name%.zip ..\ +popd + +pushd %base%\net45 +set name=staragent45 +bash -c "zip -9 %name%.zip -- *.exe *.dll StarAgent.exe.config" +move %name%.zip ..\ +popd