Skip to content

Commit

Permalink
Shrink payload (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ authored Dec 8, 2024
1 parent 33d7689 commit d3d579e
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
mkdir vsix
7z x src/GUI/lib/efreveng80.exe.zip -oefreveng80 -y
dir /a:-d /s /b "efreveng80" | find /c ":\" > filecount.txt
findstr "166" filecount.txt
findstr "164" filecount.txt
- name: Extract and verify efreveng90.exe.zip file count
if: github.event_name != 'pull_request'
Expand All @@ -67,7 +67,7 @@ jobs:
mkdir vsix
7z x src/GUI/lib/efreveng90.exe.zip -oefreveng90 -y
dir /a:-d /s /b "efreveng90" | find /c ":\" > filecount.txt
findstr "165" filecount.txt
findstr "146" filecount.txt
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
Expand Down
33 changes: 32 additions & 1 deletion src/Core/efreveng80/BuildCmdlineTool.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dotnet publish -o bin\Release\net8.0\x64\publish -f net8.0 -c Release --no-self-contained
dotnet publish -o bin\Release\net8.0\x64\publish -f net8.0 -c Release --no-self-contained

if %errorlevel% equ 1 goto notbuilt

Expand All @@ -12,6 +12,37 @@ del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.Dac.Extensions.dll
del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.Server.dll
del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.TransactSql.ScriptDom.dll

rd bin\Release\net8.0\x64\publish\runtimes\android-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-x86 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\browser-wasm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-armel /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-mips64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-ppc64le /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-s390x /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-x86 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-armv7s /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\iossimulator-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\iossimulator-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\maccatalyst-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\maccatalyst-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\tvos-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\tvossimulator-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\unix /Q /S

"C:\Program Files\7-Zip\7z.exe" -mm=Deflate -mfb=258 -mpass=15 a efreveng80.exe.zip .\bin\Release\net8.0\x64\publish\*

move /Y efreveng80.exe.zip ..\..\GUI\lib\
Expand Down
31 changes: 31 additions & 0 deletions src/Core/efreveng90/BuildCmdlineTool.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,37 @@ del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.Dac.Extensions.dll
del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.Server.dll
del bin\Release\net8.0\x64\publish\Microsoft.SqlServer.TransactSql.ScriptDom.dll

rd bin\Release\net8.0\x64\publish\runtimes\android-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\android-x86 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\browser-wasm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-armel /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-mips64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-musl-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-ppc64le /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-s390x /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\linux-x86 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-arm /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\ios-armv7s /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\iossimulator-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\iossimulator-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\maccatalyst-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\maccatalyst-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\osx-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\tvos-arm64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\tvossimulator-x64 /Q /S
rd bin\Release\net8.0\x64\publish\runtimes\unix /Q /S

"C:\Program Files\7-Zip\7z.exe" -mm=Deflate -mfb=258 -mpass=15 a efreveng90.exe.zip .\bin\Release\net8.0\x64\publish\*

move /Y efreveng90.exe.zip ..\..\GUI\lib\
Expand Down
Binary file modified src/GUI/lib/efreveng60.exe.zip
Binary file not shown.
Binary file modified src/GUI/lib/efreveng80.exe.zip
Binary file not shown.
Binary file modified src/GUI/lib/efreveng90.exe.zip
Binary file not shown.

0 comments on commit d3d579e

Please sign in to comment.