Skip to content

Commit d1b9c91

Browse files
committed
workflow
1 parent fec2737 commit d1b9c91

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Refer to nice exmaples: [bin/examples](bin/examples)
170170
Install at least on MSys2/MinGW console,
171171

172172
```sh
173-
pacman -S mingw-w64-ucrt-x86_64-{cmake,gcc,clang,llvm-openmp} patch make
173+
pacman -S mingw-w64-ucrt-x86_64-{cmake,gcc,clang,llvm-openmp} patch make git
174174
```
175175

176176
- Build **on MSys2 console**,

examples/tools/genbat.exe

86 KB
Binary file not shown.

examples/tools/genbat.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Compilation
44
# $ nim c -d:release -d:strip genbat.nim
55

6-
import std/[dirs, paths, re, strutils, strformat, os]
6+
import std/[dirs, paths, pegs, strutils, strformat, os]
77

88
const EXAMPLES_DIR_TOP = "../../bin/examples".Path
99

@@ -12,10 +12,10 @@ for file in walkDirRec("."):
1212
let (dirParent, _, ext) = file.splitFile
1313
if ext == ".lua":
1414
for line in lines(file):
15-
if line.contains(re"win:start") or
16-
line.contains(re"shouldClose\(") or
17-
line.contains(re"pollEvent\(") or
18-
line.contains(re"GL:start"):
15+
if line.contains(peg"'win:start'") or
16+
line.contains(peg"'shouldClose\('") or
17+
line.contains(peg"'pollEvent\('") or
18+
line.contains(peg"'GL:start'"):
1919
let luaName = extractFilename(file)
2020
let batName = extractFilename(file).changeFileExt("bat")
2121
let sLuaJitExePath = (".." & DirSep).repeat(1 + dirParent.count( Dirsep)) & "luajit.exe"

0 commit comments

Comments
 (0)