File tree Expand file tree Collapse file tree 6 files changed +70
-13
lines changed
Expand file tree Collapse file tree 6 files changed +70
-13
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - ' master'
7+ paths :
8+ - ' .github/workflows/**'
9+ - ' src/**'
10+
11+ jobs :
12+ build :
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ os :
18+ - ubuntu-latest
19+ - windows-latest
20+ nim-version :
21+ - 2.2.0
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v4
26+
27+ - name : Cache nimble
28+ id : cache-nimble
29+ uses : actions/cache@v4
30+ with :
31+ path : ~/.nimble
32+ key : ${{ runner.os }}-nimble-v2-${{ hashFiles('*.nimble') }}
33+
34+ - name : Setup nim
35+ uses : jiro4989/setup-nim-action@v2
36+ with :
37+ nim-version : ${{ matrix.nim-version }}
38+
39+ - name : Install Packages
40+ run : nimble install -d -y
41+
42+ - name : Build test
43+ run : nimble build -Y
44+
Original file line number Diff line number Diff line change 55 "packages" : [
66 " libevdev"
77 ],
8- "path" : " /nix/store/ah8xajfp2qwmial57157c15a84k2d479 -source" ,
9- "rev" : " c509da320c45b3b77c2da2d45e695511ff457ba0 " ,
10- "sha256" : " 0k3n1q6251d462lpnnq31zqz86wbb3n8cm4jlcvh37qsy4hjibxx " ,
8+ "path" : " /nix/store/wws203f5w5cj6x78alhjxyj7pwxiypi0 -source" ,
9+ "rev" : " a191a1b1618e85374e892e40330356fce9886eed " ,
10+ "sha256" : " 00xbanpkdzs977f4j7vrqi3wpfzblvakylnaqcri86iwwahcmlgn " ,
1111 "srcDir" : " " ,
12- "url" : " https://github.com/PassiveLemon/libevdev-nim/archive/c509da320c45b3b77c2da2d45e695511ff457ba0 .tar.gz"
12+ "url" : " https://github.com/PassiveLemon/libevdev-nim/archive/a191a1b1618e85374e892e40330356fce9886eed .tar.gz"
1313 },
1414 {
1515 "method" : " fetchzip" ,
2222 "sha256" : " 16npqgmi2qawjxaddj9ax15rfpdc7sqc37i2r5vg23lyr6znq4wc" ,
2323 "srcDir" : " " ,
2424 "url" : " https://github.com/nim-lang/x11/archive/29aca5e519ebf5d833f63a6a2769e62ec7bfb83a.tar.gz"
25+ },
26+ {
27+ "method" : " fetchzip" ,
28+ "packages" : [
29+ " winim"
30+ ],
31+ "path" : " /nix/store/qp2iv7zxx76yai75kqv7x9qhcf3n5x33-source" ,
32+ "ref" : " 3.9.4" ,
33+ "rev" : " 6fdee629140baa0d7060ddf86662457d11f50d35" ,
34+ "sha256" : " 1v5jcylcsgk2x2aylzdk9fgyygjylz1ikmp2xxj6prck7wk6kxdv" ,
35+ "srcDir" : " " ,
36+ "url" : " https://github.com/khchen/winim/archive/6fdee629140baa0d7060ddf86662457d11f50d35.tar.gz"
2537 }
2638 ]
2739}
Original file line number Diff line number Diff line change 1212 ../ constants,
1313 ../ logging
1414
15- import
16- libevdev,
17- linux/ input
15+ import libevdev
1816
1917
2018var
Original file line number Diff line number Diff line change 1- import
2- std/ os
1+ import std/ os
32
43import winim
54
@@ -80,4 +79,5 @@ proc moveMouseRel*(x, y: int): void =
8079 input.mi.dy = y.LONG
8180 input.mi.dwFlags = MOUSEEVENTF_MOVE
8281 discard SendInput (1 , addr input, sizeof (INPUT ).int32 )
83- sleep (uinputTimeout)
82+ sleep (uinputTimeout)
83+
Original file line number Diff line number Diff line change @@ -93,4 +93,5 @@ proc getBaitShop*(): bool =
9393
9494proc getBaitSelect * (): bool =
9595 let screenshot = getScreenshot ()
96- return checkPixels (screenshot, baitSelectPixels, 3 )
96+ return checkPixels (screenshot, baitSelectPixels, 3 )
97+
Original file line number Diff line number Diff line change 11# Package
2+ packageName = " webfisher"
23version = " 1.1.1"
34author = " PassiveLemon"
45description = " A Nim based fishing script for Webfishing"
@@ -8,6 +9,7 @@ bin = @["webfisher"]
89
910# Dependencies
1011requires " nim >= 2.2.0"
11- requires " https://github.com/PassiveLemon/libevdev-nim.git#c509da320c45b3b77c2da2d45e695511ff457ba0 " # Libevdev
12+ requires " https://github.com/PassiveLemon/libevdev-nim.git#a191a1b1618e85374e892e40330356fce9886eed " # Libevdev
1213requires " x11 >= 1.2"
13- requires " winim >= 3.9.4"
14+ requires " winim >= 3.9.4"
15+
You can’t perform that action at this time.
0 commit comments