diff --git a/.github/workflows/BuildExecutable.yaml b/.github/workflows/BuildExecutable.yaml new file mode 100644 index 0000000..0303c1b --- /dev/null +++ b/.github/workflows/BuildExecutable.yaml @@ -0,0 +1,70 @@ +on: + push: + tags: + - 'v*' # Push events to matching v*, i.i. v1.0, v20.15.10 + +name: Release Package With Version + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + pip install opencv-python + pip install pyautogui + pip install pyperclip + pip install pywin32 + + + - name: Build with pyinstaller + run: | + pyinstaller -F -w League.py + + - name: Compress release package + run: | + 7z a -tzip LOL_report_tool.zip '@7zip_list_file.txt' + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_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.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: LOL_report_tool.zip + asset_name: LOL_report_tool.zip + asset_content_type: application/zip + + # - name: Upload artifacts + # uses: actions/upload-artifact@v2 + # with: + # name: LOL_report_tool.zip + # path: LOL_report_tool.zip + # retention-days: 7 + + # TODO: pack the exe and images in a zip and release it + + # Install dep via requirements.txt + # pip install -r requirements.txt \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6dea911..da5da3f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,356 +5,5 @@ TODO.txt #log files *.log -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*[.json, .xml, .info] - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ \ No newline at end of file +# executables +*.exe \ No newline at end of file diff --git a/7zip_list_file.txt b/7zip_list_file.txt new file mode 100644 index 0000000..f6611ad --- /dev/null +++ b/7zip_list_file.txt @@ -0,0 +1,3 @@ +image\* +dist\League.exe +reportText.txt \ No newline at end of file diff --git a/EnvSetup.txt b/EnvSetup.txt deleted file mode 100644 index 8232243..0000000 --- a/EnvSetup.txt +++ /dev/null @@ -1,8 +0,0 @@ -Environment setup - -TODO: use a script to setup - -1. Install python 3.7.3 -2. python get pip -> python get-pip.py -3. python -m pip install pyautogui -4. python -m pip install pywin32 \ No newline at end of file diff --git a/RunReportTool.exe b/RunReportTool.exe deleted file mode 100644 index 85bd1d8..0000000 Binary files a/RunReportTool.exe and /dev/null differ diff --git a/image/AramIcon/ARAMLeave.PNG b/image/AramIcon/ARAMLeave.PNG new file mode 100644 index 0000000..16b18bd Binary files /dev/null and b/image/AramIcon/ARAMLeave.PNG differ diff --git a/image/reportIcon/report12.PNG b/image/reportIcon/report12.PNG new file mode 100644 index 0000000..c43e5db Binary files /dev/null and b/image/reportIcon/report12.PNG differ diff --git a/image/reportIcon/report13.PNG b/image/reportIcon/report13.PNG new file mode 100644 index 0000000..916a4b3 Binary files /dev/null and b/image/reportIcon/report13.PNG differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..743da2a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,42 @@ +altgraph==0.17 +asgiref==3.2.3 +cx-Freeze==6.1 +cycler==0.10.0 +decorator==4.4.0 +Django==3.0.3 +future==0.18.2 +imageio==2.5.0 +importlib-metadata==3.7.3 +joblib==0.13.2 +keyboard==0.13.4 +kiwisolver==1.1.0 +mahotas==1.4.5 +matplotlib==3.1.0 +MouseInfo==0.1.2 +networkx==2.3 +numpy==1.16.4 +opencv-python==4.1.0.25 +pefile==2019.4.18 +Pillow==6.0.0 +PyAutoGUI==0.9.48 +PyGetWindow==0.0.8 +pyinstaller==4.2 +pyinstaller-hooks-contrib==2021.1 +PyMsgBox==1.0.7 +pyparsing==2.4.0 +pyperclip==1.7.0 +PyRect==0.1.4 +PyScreeze==0.1.25 +python-dateutil==2.8.0 +PyTweening==1.0.3 +pytz==2019.3 +PyWavelets==1.0.3 +pywin32==227 +pywin32-ctypes==0.2.0 +scikit-image==0.15.0 +scikit-learn==0.21.2 +scipy==1.3.0 +six==1.12.0 +sqlparse==0.3.0 +typing-extensions==3.7.4.3 +zipp==3.4.1 diff --git a/setup.bat b/setup.bat deleted file mode 100644 index 836ca84..0000000 --- a/setup.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off - -python -m pip install pyautogui -python -m pip install pywin32 -python -m pip install opencv-python \ No newline at end of file diff --git a/src/RunReportTool/RunReportTool.sln b/src/RunReportTool/RunReportTool.sln deleted file mode 100644 index 0118008..0000000 --- a/src/RunReportTool/RunReportTool.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.572 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RunReportTool", "RunReportTool\RunReportTool.vcxproj", "{D6AAFE67-61A9-4C95-934A-2200ED13E8C0}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Debug|x64.ActiveCfg = Debug|x64 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Debug|x64.Build.0 = Debug|x64 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Debug|x86.ActiveCfg = Debug|Win32 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Debug|x86.Build.0 = Debug|Win32 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Release|x64.ActiveCfg = Release|x64 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Release|x64.Build.0 = Release|x64 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Release|x86.ActiveCfg = Release|Win32 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {15929EA4-96CB-4F57-805A-77543348A96B} - EndGlobalSection -EndGlobal diff --git a/src/RunReportTool/RunReportTool/RunReportTool.cpp b/src/RunReportTool/RunReportTool/RunReportTool.cpp deleted file mode 100644 index 48a0460..0000000 --- a/src/RunReportTool/RunReportTool/RunReportTool.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// RunReportTool.cpp : 此檔案包含 'main' 函式。程式會於該處開始執行及結束執行。 -// - -//#include "pch.h" -#include -#include -#include - -using namespace std; -namespace fs = filesystem; - -int main(int argc, const char * argv[]) -{ - fs::path currPath = fs::current_path(); - wstring wstrCmd = L"start /b pythonw "; - - wstrCmd += currPath.wstring(); - wstrCmd += L"\\League.py"; - - _wsystem( wstrCmd.c_str() ); - - return 0; -} diff --git a/src/RunReportTool/RunReportTool/RunReportTool.vcxproj b/src/RunReportTool/RunReportTool/RunReportTool.vcxproj deleted file mode 100644 index 6a6101a..0000000 --- a/src/RunReportTool/RunReportTool/RunReportTool.vcxproj +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 15.0 - {D6AAFE67-61A9-4C95-934A-2200ED13E8C0} - Win32Proj - RunReportTool - 10.0.17763.0 - - - - Application - true - v141 - Unicode - - - Application - false - v141 - true - Unicode - - - Application - true - v141 - Unicode - - - Application - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - NotUsing - Level3 - Disabled - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - pch.h - stdcpp17 - - - false - - - Console - true - - - - - Use - Level3 - Disabled - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - pch.h - - - Console - true - - - - - NotUsing - Level3 - MaxSpeed - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - pch.h - stdcpp17 - - - Console - true - true - true - - - - - Use - Level3 - MaxSpeed - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - pch.h - - - Console - true - true - true - - - - - - - - - \ No newline at end of file diff --git a/src/RunReportTool/RunReportTool/RunReportTool.vcxproj.filters b/src/RunReportTool/RunReportTool/RunReportTool.vcxproj.filters deleted file mode 100644 index 1d24114..0000000 --- a/src/RunReportTool/RunReportTool/RunReportTool.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - 來源檔案 - - - \ No newline at end of file