Skip to content

Commit

Permalink
v1.67
Browse files Browse the repository at this point in the history
  • Loading branch information
ssyatelandisi committed Sep 30, 2023
1 parent 10e0ae9 commit a8a74a2
Show file tree
Hide file tree
Showing 29 changed files with 8,467 additions and 1 deletion.
85 changes: 85 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Project Release

on:
push:
tags:
- v*

permissions:
contents: read

jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller pyqt5 cffi
- name: DLL Building
run: |
git submodule update --init --recursive
path=$(pwd)
cd gtaLib
if [ -d build ]
then
rm -rf build
fi
cmake -G "MinGW Makefiles" -S . -B build
cmake --build build
cd $path
shell: bash
- name: Download UPX
run: |
curl --location --request GET 'https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip' \
--header 'referer: https://github.com/upx/upx/releases' \
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36' \
--output 'upx-3.96-win64.zip'
7z x upx-3.96-win64.zip
mv ./upx-3.96-win64/upx.exe ./upx.exe
shell: bash
- name: Python Building
run: |
if exist "dist" (
rmdir /s /q dist
)
if exist "GTAV Cheat.spec" (
del /q *.spec
)
pyuic5 src/app.ui -o src/ui_app.py
pyrcc5 resource/resource.qrc -o src/resource_rc.py
pyinstaller -w .\src\app.py --uac-admin -i icon.ico --version-file=version_info.txt -n="GTAV Cheat" --add-data="teleports.txt;.\\" --add-binary=".\gtaLib\build\lib\gtaLib.dll;.\\" --clean -y
if exist "teleports.txt" (
copy teleports.txt "dist\GTAV Cheat\teleports.txt" /y
)
if exist "YimMenu.dll" (
copy teleports.txt "dist\GTAV Cheat\YimMenu.dll" /y
)
cd dist
7z a "GTAV_Cheat.zip" "GTAV Cheat" -tZIP
shell: cmd
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/GTAV_Cheat.zip
asset_name: GTAV_Cheat.zip
asset_content_type: application/zip
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.venv/
.vscode/
!.vscode/settings.json
build/
dist/
dist*/
__pycache__/
tools/*
!tools/特征码查询.py
!tools/特征字节查找.png
!tools/c++方法参考.cpp
*.exe
run.cmd
test.py
*.spec
*.json
*.dll
!gtaLib.dll
test.*
*test*
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "gtaLib"]
path = gtaLib
url = https://github.com/ssyatelandisi/gtaLib.git
74 changes: 73 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,73 @@
# gta5cheat
# gta5cheat

适用于 GTA5v1.67

Applicable for GTA5v1.67

![常用](./img/常用.png)

![传送](./img/传送.png)

![分红](./img/分红.png)

## 开发环境 Development Environment

### PYTHON

> pip install pyinstaller pyqt5 pyqt5-tools cffi
keyboard 键盘事件库不好处理scankey,改用c++

### C++

MinGW

CMake

## 编译 Building

* 编译生成项目需要用到的dll文件

> cmake -G "MinGW Makefiles" -S gtaLib -B gtaLib/build
> cmake --build gtaLib/build
* 编译生成exe程序启动文件

> pyinstaller -w ./src/app.py --uac-admin -i icon.ico --version-file=version_info.txt -n="GTAV Cheat" --add-data="teleports.txt;./" --add-binary="./gtaLib/build/lib/gtaLib.dll;./"
## 文档 Documents

* src

* app.py - 程序入口

* app.ui - QtDesigner ui文件

* Doomsday.py - 卡末日前置模块[❌弃用,供参考]

* gtav.py - 核心数据控制模块

* KeySend.py - 自动按键模块[❌弃用,供参考]

* ProcessMemoryHandle.py - 进程内存模块[❌弃用,供参考]

* resource_rc.py - 静态资源模块

* ui_app.py - ui生成的程序界面模块

* work.py - 子线程类模块

* resource

* icon_16.ico

* resource.qrc

* sound0.wav

* sound1.wav
# C++ Qt6版本

C++ Qt6版本转到[https://github.com/ssyatelandisi/gta5cheat_qt](https://github.com/ssyatelandisi/gta5cheat_qt)

55 changes: 55 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version="v1.67"
echo "清理dist目录"
if [ -d "dist" ]
then
rm -rf dist
mkdir dist
else
mkdir dist
fi
if [ -f "GTAV Cheat.spec" ]
then
rm -rf GTAV Cheat.spec
fi
echo "编译dll文件"
cmake -S gtaLib -B gtaLib/build -G "MinGW Makefiles"
cmake --build gtaLib/build
if [ -f gtaLib/build/lib/libgtaLib.dll ]
then
cp gtaLib/build/lib/libgtaLib.dll gtaLib/gtaLib.dll
fi
echo "切换到python3.10"
source activate python3.10
pyuic5 src/app.ui -o src/ui_app.py
pyrcc5 resource/resource.qrc -o src/resource_rc.py
echo "同步到github"
git reset 10e0ae9314a3048bd05cf76c5ce5fe07dad0b77a
git push origin tag -d "$version"
git tag -d "$version"
git add .
git commit -m"$version"
git tag "$version"
git push -f
git push --tags
echo "本地编译exe"
pyinstaller -w ./src/app.py --uac-admin -i icon.ico --version-file=version_info.txt -n="GTAV Cheat" --add-data="teleports.txt;./" --add-binary="./gtaLib/build/lib/gtaLib.dll;./" --clean -y
# pyinstaller -Fw ./src/app.py --uac-admin -i icon.ico --version-file=version_info.txt -n="GTAV Cheat" --add-data="teleports.txt;./" --add-binary="./gtaLib/build/lib/gtaLib.dll;./" --clean -y
if [ -f "dist/GTAV Cheat.exe" ]
then
cp teleports.txt "dist/teleports.txt"
fi
path=$(pwd)
cd dist
if [ -f "GTAV Cheat.exe" ]
then
7z a "GTAV_Cheat.zip" "GTAV Cheat.exe" "teleports.txt" -tZIP
fi
cd $path
if [ -f "YimMenu.dll" ]
then
cp YimMenu.dll "dist/GTAV Cheat/YimMenu.dll"
if [ -f "dist/GTAV Cheat.exe" ]
then
cp YimMenu.dll "dist/YimMenu.dll"
fi
fi
1 change: 1 addition & 0 deletions gtaLib
Submodule gtaLib added at c2802d
Binary file added icon.ico
Binary file not shown.
Binary file added img/d207a4e8af9046003bea0ed2984c61ab54f9a61a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/传送.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/分红.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/常用.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resource/icon_16.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions resource/resource.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<RCC>
<qresource prefix="/sound">
<file>sound0.wav</file>
<file>sound1.wav</file>
</qresource>
<qresource prefix="image">
<file>icon_16.ico</file>
</qresource>
</RCC>
Binary file added resource/sound0.wav
Binary file not shown.
Binary file added resource/sound1.wav
Binary file not shown.
Loading

0 comments on commit a8a74a2

Please sign in to comment.