-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ElectricityMachine/develop
Update to 0.4
- Loading branch information
Showing
9 changed files
with
504 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint and build | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ruff: | ||
name: Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
args: --output-format github | ||
|
||
build: | ||
name: Build binary | ||
runs-on: "windows-latest" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['windows-latest'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
cache: 'pip' | ||
- run: pip install -r requirements.txt pyinstaller | ||
- run: pyinstaller script.py --name sgplus --noconfirm --onefile --add-binary "autoit\AutoItX3_x64.dll;.\autoit\lib" --hidden-import "mouse" | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/sgplus.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"sourcery.codeLens": false | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@ECHO OFF | ||
echo "This script will install SG+'s script dependencies and create a virtual environment for you." | ||
echo "If you have not installed Python 3.12, please exit the script and install it from https://python.org" | ||
choice /m "Have you installed Python 3.12?" | ||
if %errorlevel% equ 1 goto confirmed | ||
if %errorlevel% equ 2 goto request_install | ||
|
||
:confirmed | ||
echo "Creating venv..." | ||
call python -m venv .venv | ||
echo "Installing dependencies..." | ||
cd ..\.. | ||
.venv\Scripts\python.exe -m pip install -r requirements.txt | ||
PAUSE | ||
|
||
:request_install | ||
echo "You have indicated you have not installed Python 3.12. Please do so, then run the script again." | ||
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
autoit==0.2.6 | ||
colorama==0.4.4 | ||
colorama==0.4.6 | ||
keyboard==0.13.5 | ||
mss==7.0.1 | ||
Pillow==9.4.0 | ||
PyAutoGUI==0.9.53 | ||
mouse==0.7.1 | ||
mss==9.0.1 | ||
numpy==1.26.1 | ||
Pillow==10.1.0 | ||
PyAutoIt==0.6.5 | ||
PyGetWindow==0.0.9 | ||
pyperclip==1.8.2 | ||
PyScreeze==0.1.28 | ||
pywin32==303 | ||
requests==2.28.2 | ||
pywin32==306 | ||
requests==2.31.0 | ||
urllib3==2.0.7 |
Oops, something went wrong.