Skip to content

Commit

Permalink
feat: Rename patch tool
Browse files Browse the repository at this point in the history
Remove the version (in case we ever need to use it for BE) and the dash (to make it easier for users to run)
  • Loading branch information
bmaupin committed Jun 7, 2024
1 parent 4495c40 commit 3df0bd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
src/*.js
patch-civ5.*
patchciv.*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sed -i 's/SELECT ModID from Mods where Activated = 1/SELECT ModID from Mods wher
1. Run the patch tool, e.g.

```
patch-civ5.exe 'C:\Program Files (x86)\Steam\steamapps\common\Sid Meier''s Civilization V\CivilizationV.exe'
patchciv.exe 'C:\Program Files (x86)\Steam\steamapps\common\Sid Meier''s Civilization V\CivilizationV.exe'
```

1. When playing the game, choose DirectX 9 (unfortunately the patch doesn't work for DirectX 11)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ npm install
node_modules/.bin/esbuild src/civPatcher.ts --bundle --platform=node --target=node12 --outfile=src/civPatcher.js
if [[ ! -f ~/.nexe/windows-x86-10.16.3 ]]; then
# Build the package once to fetch Node
node_modules/.bin/nexe src/civPatcher.js -o patch-civ5 -t windows-x86-10.16.3
node_modules/.bin/nexe src/civPatcher.js -o patchciv -t windows-x86-10.16.3
# Compress the Node executable
upx --lzma ~/.nexe/windows-x86-10.16.3
fi
# Build the package with the compressed version of Node
node_modules/.bin/nexe src/civPatcher.js -o patch-civ5 -t windows-x86-10.16.3
node_modules/.bin/nexe src/civPatcher.js -o patchciv -t windows-x86-10.16.3

0 comments on commit 3df0bd0

Please sign in to comment.