Skip to content

Commit

Permalink
add git apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Feb 13, 2024
1 parent bfcafdb commit b1b9a1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export CXXFLAGS="-DNDEBUG -msse3 -O3 -g0 -s" &&
export CPPFLAGS="-DNDEBUG -msse3 -O3 -g0 -s" &&
export LDFLAGS="-Wl,-O3 -msse3 -s" &&

# Patch for Electron 22/Node 16
git apply --reject ./patches/win7.patch &&

# Patch package.jsons to use Node 16
/usr/bin/find ./ \( -type d -name .git -prune -type d -name node_modules -prune \) -o -type f -name package.json -print0 | xargs -0 sed -i 's/\"\@types\/node\"\:\ \"18\.x\"/\"\@types\/node\"\:\ \"16\.x\"/g' &&

Expand Down Expand Up @@ -114,6 +117,9 @@ set CXXFLAGS="-DNDEBUG -msse3 -O3 -g0 -s" &&
set CPPFLAGS="-DNDEBUG -msse3 -O3 -g0 -s" &&
set LDFLAGS="-Wl,-O3 -msse3 -s" &&

# Patch for Electron 22/Node 16
git apply --reject ./patches/win7.patch &&

# Patch package.jsons to use Node 16
/usr/bin/find ./ \( -type d -name .git -prune -type d -name node_modules -prune \) -o -type f -name package.json -print0 | xargs -0 sed -i 's/\"\@types\/node\"\:\ \"18\.x\"/\"\@types\/node\"\:\ \"16\.x\"/g' &&

Expand Down

0 comments on commit b1b9a1a

Please sign in to comment.