Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Use BCJ2 filter for 7z artefacts, should save about 5%
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jul 19, 2023
1 parent 733433d commit d64ef80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
shell: bash
run: |
cp LICENSE.txt README.md README.RU.md README.PL.md ./Far3_${{ matrix.platform }}/Plugins/NetBox/
7z a -m0=LZMA -mf=off -mx9 ${{ env.netbox_name }} ./Far3_${{ matrix.platform }}/Plugins/* -xr!*.pdb
7z a -m0=LZMA -mf=BCJ2 -mx9 ${{ env.netbox_name }} ./Far3_${{ matrix.platform }}/Plugins/* -xr!*.pdb
7z a -m0=LZMA -mf=off -mx9 ${{ env.netbox_pdb_name }} ./Far3_${{ matrix.platform }}/Plugins/NetBox/NetBox.pdb
- name: Upload result
Expand Down
2 changes: 1 addition & 1 deletion src/NetBox/scripts/make_dist.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ copy ..\..\%FARVER%_%PLUGINARCH%\Plugins\%PLUGINNAME%\%PLUGINNAME%.dll %PKGDIRAR
if exist %PKGNAME% del %PKGNAME%
if exist ../../build/%PLUGINNAME%/%FARVER%/%PLUGINARCH% (
if exist "C:\Program Files\7-Zip\7z.exe" (
call "C:\Program Files\7-Zip\7z.exe" a -m0=LZMA -mf=off -mx9 -r ../../build/%PKGNAME% ../../build/%PLUGINNAME%/%FARVER%/%PLUGINARCH%/* > NUL
call "C:\Program Files\7-Zip\7z.exe" a -m0=LZMA -mf=BCJ2 -mx9 -r ../../build/%PKGNAME% ../../build/%PLUGINNAME%/%FARVER%/%PLUGINARCH%/* > NUL
if errorlevel 1 echo Error creating archive & exit 1 /b
@rem rmdir /S /Q %PKGDIRARCH%
echo Package %PKGNAME% created
Expand Down

0 comments on commit d64ef80

Please sign in to comment.