Skip to content

Commit

Permalink
0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulian233 committed Aug 3, 2024
1 parent 07d61a8 commit 1f04225
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions main.spec → PyBuild/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@


a = Analysis(
['__main__.py'],
['../__main__.py'],
pathex=[],
binaries=[],
datas=[
('feedtheforge/lang/zh_CN.json', 'feedtheforge/lang'),
('feedtheforge/lang/en_US.json', 'feedtheforge/lang')
('../feedtheforge/lang/zh_CN.json', 'feedtheforge/lang'),
('../feedtheforge/lang/en_US.json', 'feedtheforge/lang')
],
hiddenimports=['aiohttp', 'pick'],
hookspath=[],
Expand Down Expand Up @@ -38,5 +38,5 @@ exe = EXE(
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['PyBuild/icon.ico'],
icon=['icon.ico'],
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ WIP
1. **Package as Executable**:
```bash
pip install pyinstaller
pyinstaller main.spec
pyinstaller PyBuild/main.spec
```
3. **Locate the Executable**:
- For **Windows**, the executable will be a `.exe` file located in the `dist` folder.
Expand Down
14 changes: 7 additions & 7 deletions feedtheforge/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import locale
import os
import tempfile
from pathlib import Path

from feedtheforge.i18n import Locale

Expand All @@ -10,12 +10,12 @@
current_language = lang.get_language()

# 缓存目录设置
cache_dir = os.path.join(tempfile.gettempdir(), "FeedTheForge")
packlist_path = os.path.join(cache_dir, "packlist.json")
modpack_path = os.path.join(cache_dir, "pack_files")
patch = os.path.join(cache_dir, "patch.zip")
patch_folder = os.path.join(cache_dir, "patch")
mod_path = os.path.join(modpack_path, "overrides", "mods")
cache_dir = Path(tempfile.gettempdir()) / "FeedTheForge"
packlist_path = cache_dir / "packlist.json"
modpack_path = cache_dir / "pack_files"
patch = cache_dir / "patch.zip"
patch_folder = cache_dir / "patch"
mod_path = modpack_path / "overrides" / "mods"

I18NUPDATE_LINK = "https://mediafilez.forgecdn.net/files/5335/196/I18nUpdateMod-3.5.5-all.jar"

Expand Down

0 comments on commit 1f04225

Please sign in to comment.