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

Commit

Permalink
Disable 7-zip shenanigans
Browse files Browse the repository at this point in the history
In v23 7-zip introduced a new filter for ARM64 binaries, incompatible with all previous versions and enabled by default.
Disable filters and set compression method to LZMA for maximum compatibility.
  • Loading branch information
alabuzhev committed Jul 19, 2023
1 parent ed1002f commit 733433d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ jobs:
shell: bash
run: |
cp LICENSE.txt README.md README.RU.md README.PL.md ./Far3_${{ matrix.platform }}/Plugins/NetBox/
7z a ${{ env.netbox_name }} ./Far3_${{ matrix.platform }}/Plugins/* -xr!*.pdb
7z a ${{ env.netbox_pdb_name }} ./Far3_${{ matrix.platform }}/Plugins/NetBox/NetBox.pdb
7z a -m0=LZMA -mf=off -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
uses: actions/upload-artifact@v2
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 -mx9 -t7z -r ../../build/%PKGNAME% ../../build/%PLUGINNAME%/%FARVER%/%PLUGINARCH%/* > NUL
call "C:\Program Files\7-Zip\7z.exe" a -m0=LZMA -mf=off -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 733433d

Please sign in to comment.