Skip to content

Commit

Permalink
patch: update for nsis define
Browse files Browse the repository at this point in the history
Since 23.01
#45
  • Loading branch information
myfreeer committed Jun 23, 2023
1 parent 1b49554 commit 9bbf0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 7-zip-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ sed -i '/LFLAGS = $(LFLAGS) -OPT:NOWIN98/ c\LFLAGS = $(LFLAGS)\' CPP/Build.mak

# patch NsisIn.h to enable NSIS script decompiling
# https://sourceforge.net/p/sevenzip/discussion/45797/thread/5d10a376/
# insert #define NSIS_SCRIPT before the 19th line using sed
sed -i '19 i #define NSIS_SCRIPT' CPP/7zip/Archive/Nsis/NsisIn.h
# uncomment the NSIS_SCRIPT define using sed since the line number changed in 23.01
sed -i 's|// #define NSIS_SCRIPT|#define NSIS_SCRIPT|g' CPP/7zip/Archive/Nsis/NsisIn.h

# drop -WX option in Build.mak
# workaround error C2220: warning treated as error
Expand Down

0 comments on commit 9bbf0d0

Please sign in to comment.