Skip to content

Commit

Permalink
fix issue #38
Browse files Browse the repository at this point in the history
fix: [BUG] Folder Name Length causing crash #38
fix: issue with to many tags on e6 sites
feat: proper folder management for e6 sites
feat: build windows exe on actions now for full transparency on the build process
  • Loading branch information
Official-Husko committed Jun 22, 2024
1 parent 5c8acb0 commit c6792bb
Show file tree
Hide file tree
Showing 27 changed files with 1,751 additions and 1,875 deletions.
76 changes: 38 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
---
name: Bug report
about: Create a bug report to help me solve the issue.
title: "[BUG] "
labels: bug, enhancement
assignees: Official-Husko

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Version [e.g. 10]

**Used Parameters and Settings (please complete the following information):**
- Site: [e.g. e621]
- Tool Version: [e.g. ]
- Tags/Link: [e.g. wolf female sfw]

**Additional context**
Add any other context about the problem here.

### ***Please attach the runtime.log***
---
name: Bug report
about: Create a bug report to help me solve the issue.
title: "[BUG] "
labels: bug, enhancement
assignees: Official-Husko

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Version [e.g. 10]

**Used Parameters and Settings (please complete the following information):**
- Site: [e.g. e621]
- Tool Version: [e.g. ]
- Tags/Link: [e.g. wolf female sfw]

**Additional context**
Add any other context about the problem here.

### ***Please attach the runtime.log***
52 changes: 26 additions & 26 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[REQUEST] "
labels: enhancement
assignees: Official-Husko

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

**Site URL**
Add the site URL here if this is a site request.

**Does the site have an API?**
If the site has an API please put the link here. If unknown write it.
---
name: Feature request
about: Suggest an idea for this project
title: "[REQUEST] "
labels: enhancement
assignees: Official-Husko

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

**Site URL**
Add the site URL here if this is a site request.

**Does the site have an API?**
If the site has an API please put the link here. If unknown write it.
48 changes: 48 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Windows Executable

on:
push:
branches:
- dev # Adjust branch name as needed

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12.4 # Specify the Python version you need

- name: Create virtual environment
run: |
python -m venv .env
.env\Scripts\activate # Activate the virtual environment
python -m pip install --upgrade pip
pip install -r requirements.txt # Replace with your requirements file if exists
- name: Build executable
run: |
.env\Scripts\activate # Activate the virtual environment
pyinstaller --paths .env\Lib\site-packages \
--hidden-import requests \
--hidden-import inquirer \
--hidden-import alive_progress \
--hidden-import termcolor \
--hidden-import xmltodict \
--add-data=".env\Lib\site-packages\grapheme\data\*;grapheme/data/" \
--onefile \
--icon "icon.ico" \
--console \
--name "NN-Downloader" \
main.py
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: nn-downloader-windows
path: dist/NN-Downloader.exe # Adjust the path to your executable relative to the root of the repository
28 changes: 14 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
config.json
__pycache__/
*.spec
dist/
build/
media/
.env/
testing_accounts.txt
old_config.json
db/
outdated
runtime.log
config.json.dev
Build Release.bat
config.json
__pycache__/
*.spec
dist/
build/
media/
.env/
testing_accounts.txt
old_config.json
db/
outdated
runtime.log
config.json.dev
Build Release.bat
30 changes: 15 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}\\main.py",
"console": "integratedTerminal",
"justMyCode": true
}
]
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/main.py",
"console": "integratedTerminal",
"justMyCode": true
}
]
}
Loading

0 comments on commit c6792bb

Please sign in to comment.