Skip to content

Commit be85080

Browse files
Merge branch 'pyfa-org:master' into master
2 parents 2710173 + 59dcead commit be85080

File tree

263 files changed

+458191
-116958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+458191
-116958
lines changed

.appveyor.yml

Lines changed: 37 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,48 @@
11
image:
2-
- Visual Studio 2019
3-
- Ubuntu
4-
- macos
5-
clone_depth: 1
2+
- Ubuntu2204
3+
- Visual Studio 2022
4+
- macos-catalina
65
for:
76
-
87
matrix:
98
only:
10-
- image: Ubuntu
9+
- image: Ubuntu2204
1110
environment:
12-
APPVEYOR_SSH_KEY: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJDW/+oYNGOiPvwuwAL9tc/LQgg58aosIVpMYfepQZ20V+VZnHpZh8IRDA8Jo5xht19p2PksA+hFgqA0kpKtrSkuiWdE8rATQItfk4gf7yB0yGasJGGQZYazy9k/9XtmYkq2HHOOeEqdxvrICddJQ88MLCLT9lJENSUP/YS/yGcjZFXVxE11pTeIcqlCRU+3eYa1v7BeNvXIKNhZoK5orXWrtuH3cy8jrSns/u70aYfJ6B2jA8CnWnDbuvpeQtEY61SQqlKUsSArNa8NAsXj41wr3Ar9gAG9330w7EMTqlutk8HZO35uHI0q5qinUhaQYufPPrVkb2L/N+ZCfu0fnh appveyor"
13-
APPIMAGE_TOOL: appimagetool-x86_64.AppImage
14-
PYTHON_APPIMAGE: python3.7.13-cp37-cp37m-manylinux2014_x86_64.AppImage
11+
APPVEYOR_SSH_KEY: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDhb96UEXy8yOy/f+riX/8kKbNx/lOfIZ4pP4Cw3Gj3DmnTwEnxtRtyc+xtaxOsKbt+7+EAXFpCzYX+jHMhtd0QtWB7dbey8DBg31g0f8C5EPquqROibVbhzr/F3f6/d52FFfq6Y/CWaAvLjezvipr+zOOsIFcVusqtXdPJQ/LtUJ0LS5d4lFiw5ELHSxHIpqwGwyb7PbR3ufEFoqbr8eYiCH+vlBob72ArPfo2f3u0sMvpGYmjVVu2jj4FEY2h89sLrGyFdNWBoyumRhkb38+WSAuyPa/Y21+g+S8sRzIlkwbxicGNMtrMIi6zHEIGAgA06Sw2psP807h730PPOVaWjUcU3ojNW8hH3nPizF74pT82+iP7/fFC4PXLP+tBa+8OoHC5yiO7QKUKprMSqVa1qOm8fHbrzglplKJXfzSfUtSE+AQ+HtHhuUWKI+0LBLDrsOJwI5hbsPOAuiZ5I3VfqfAOck6SH9TcmlapVmQEypc7d7oeeUtZSOuIWKXp068= dfx@aw"
12+
APPIMAGE_TOOL: appimage-builder-x86_64.AppImage
1513
DEPLOY_DIR: AppDir/opt/pyfa
16-
# APPVEYOR_SSH_BLOCK: true
14+
# APPVEYOR_SSH_BLOCK: true
1715
cache:
1816
- /home/appveyor/.cache/pip -> requirements.txt
19-
init:
20-
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
17+
# init:
18+
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
2119
install:
22-
- sh: git fetch --prune --unshallow # to fix the version dump issues
2320
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y update
24-
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python3.7-dev libgtk-3-dev python3-pip libwebkit2gtk-4.0-dev
21+
# AppImage dependencies
22+
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libfuse2
23+
# Preparation script dependencies
24+
- sh: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python3-wxgtk4.0 python3-sqlalchemy python3-logbook
2525
before_build:
26-
- sh: mkdir build && cd build
27-
- sh: curl -LO https://github.com/AppImage/AppImageKit/releases/download/13/$APPIMAGE_TOOL && chmod +x $APPIMAGE_TOOL
28-
- sh: curl -LO https://github.com/niess/python-appimage/releases/download/python3.7/$PYTHON_APPIMAGE && chmod +x $PYTHON_APPIMAGE
29-
build_script:
30-
# Prepare Python base AppImage, stripping Python metadata
31-
- sh: ./$PYTHON_APPIMAGE --appimage-extract
32-
- sh: mv squashfs-root AppDir
33-
- sh: rm AppDir/python*.desktop
34-
- sh: rm AppDir/usr/share/applications/*.desktop
35-
- sh: rm AppDir/usr/share/metainfo/*.appdata.xml
36-
- sh: mkdir -p $DEPLOY_DIR
37-
# run install pyfa packages and any other requirements
38-
39-
- sh: AppDir/usr/bin/python -s -m pip install -U pip setuptools==41.6.0 wheel pathlib2
40-
- sh: AppDir/usr/bin/python -s -m pip install -r ../requirements.txt
41-
42-
# Run scripts to prep pyfa data and build database
43-
- sh: cd ../
26+
# Prepare pyfa data
4427
- sh: find locale/ -type f -name "*.po" -exec msgen "{}" -o "{}" \;
45-
- sh: build/AppDir/usr/bin/python scripts/compile_lang.py
46-
- sh: build/AppDir/usr/bin/python scripts/dump_crowdin_progress.py
47-
- sh: build/AppDir/usr/bin/python db_update.py
48-
- sh: export PYFA_VERSION="$(python3.7 scripts/dump_version.py)"
49-
50-
# Copy pyfa files to host
51-
- sh: cp -r eos graphs gui imgs locale service utils eve.db config.py pyfa.py db_update.py README.md LICENSE version.yml ./build/$DEPLOY_DIR
52-
- sh: find ./build/$DEPLOY_DIR | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
53-
54-
# Copy static AppImage files
55-
- sh: cd dist_assets/linux
56-
- sh: cp AppRun pyfa.desktop ../../build/AppDir/
57-
- sh: cp pyfa.desktop ../../build/AppDir/usr/share/applications/
58-
- sh: cp org.pyfa.pyfa.appdata.xml ../../build/AppDir/usr/share/metainfo/
59-
- sh: chmod +x pyfa && cp pyfa ../../build/AppDir/usr/bin
60-
- sh: cd ../../
61-
62-
# Package it all up
63-
- sh: mkdir dist
64-
- sh: ./build/$APPIMAGE_TOOL build/AppDir dist/pyfa-$PYFA_VERSION-linux.AppImage
28+
- sh: python3 -B scripts/compile_lang.py
29+
- sh: python3 -B scripts/dump_crowdin_progress.py
30+
- sh: python3 -B db_update.py
31+
- sh: export PYFA_VERSION="$(python3 -B scripts/dump_version.py)"
32+
- sh: mkdir build
33+
# Download packaging tool
34+
- sh: curl -o $APPIMAGE_TOOL -L https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
35+
- sh: chmod +x $APPIMAGE_TOOL
36+
build_script:
37+
- sh: mkdir -p AppDir/opt/pyfa
38+
- sh: cp -r eos graphs gui imgs locale service utils eve.db config.py pyfa.py db_update.py README.md LICENSE version.yml AppDir/opt/pyfa/
39+
- sh: mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
40+
- sh: cp imgs/gui/pyfa64.png AppDir/usr/share/icons/hicolor/64x64/apps/pyfa.png
41+
- sh: ./$APPIMAGE_TOOL --recipe dist_assets/linux/AppImageBuilder.yml
6542
after_build:
66-
- sh: ls -la build
43+
- sh: ls -la
6744
artifacts:
68-
- path: dist/pyfa-$PYFA_VERSION-linux.AppImage
45+
- path: pyfa-$PYFA_VERSION-linux.AppImage
6946
deploy:
7047
tag: $PYFA_VERSION
7148
release: pyfa $PYFA_VERSION
@@ -81,17 +58,15 @@ for:
8158
-
8259
matrix:
8360
only:
84-
- image: Visual Studio 2019
61+
- image: Visual Studio 2022
8562
environment:
86-
PYTHON: "C:\\Python37-x64"
63+
PYTHON: "C:\\Python311-x64"
8764
# Should be enabled only for build process debugging
8865
# init:
8966
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
9067
cache:
9168
- C:\users\appveyor\appdata\local\pip\cache\ -> requirements.txt
9269
install:
93-
- cmd: git fetch --prune --unshallow # to fix the version dump issues
94-
9570
- ps: echo("OS version:")
9671
- ps: "[System.Environment]::OSVersion.Version"
9772

@@ -127,10 +102,8 @@ for:
127102
# pip will build them from source using the MSVC compiler matching the
128103
# target Python version and architecture
129104
- ps: echo("Install pip requirements:")
130-
# This one is needed to build wxpython 4.0.6 on windows
131-
- cmd: "python -m pip install pathlib2"
132105
- cmd: "python -m pip install -r requirements.txt"
133-
- cmd: "python -m pip install PyInstaller==3.6"
106+
- cmd: "python -m pip install PyInstaller==6.0.0"
134107
before_build:
135108
# directory that will contain the built files
136109
- ps: $env:PYFA_DIST_DIR = "c:\projects\$env:APPVEYOR_PROJECT_SLUG\dist"
@@ -146,7 +119,7 @@ for:
146119
# Build gamedata DB
147120
- cmd: "python db_update.py"
148121
# Build command for PyInstaller
149-
- cmd: "python -m PyInstaller --noupx --clean --windowed --noconsole -y pyfa.spec"
122+
- cmd: "python -m PyInstaller --clean -y pyfa.spec"
150123
# Copy over manifest (See pyfa-org/pyfa#1622)
151124
- ps: xcopy /y dist_assets\win\pyfa.exe.manifest $env:PYFA_DIST_DIR\pyfa\
152125
# InnoScript EXE building. This is in a separate script because I don't feel like copying over the logic to AppVeyor script right now...
@@ -173,16 +146,15 @@ for:
173146
-
174147
matrix:
175148
only:
176-
- image: macos
149+
- image: macos-catalina
177150
environment:
178151
APPVEYOR_SSH_KEY: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJDW/+oYNGOiPvwuwAL9tc/LQgg58aosIVpMYfepQZ20V+VZnHpZh8IRDA8Jo5xht19p2PksA+hFgqA0kpKtrSkuiWdE8rATQItfk4gf7yB0yGasJGGQZYazy9k/9XtmYkq2HHOOeEqdxvrICddJQ88MLCLT9lJENSUP/YS/yGcjZFXVxE11pTeIcqlCRU+3eYa1v7BeNvXIKNhZoK5orXWrtuH3cy8jrSns/u70aYfJ6B2jA8CnWnDbuvpeQtEY61SQqlKUsSArNa8NAsXj41wr3Ar9gAG9330w7EMTqlutk8HZO35uHI0q5qinUhaQYufPPrVkb2L/N+ZCfu0fnh appveyor"
179152
cache:
180153
- /Users/appveyor/Library/Caches/pip/ -> requirements.txt
181154
init:
182155
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
183-
- sh: source ~/venv3.7/bin/activate
156+
- sh: source ~/venv3.11/bin/activate
184157
install:
185-
- sh: git fetch --prune --unshallow # to fix the version dump issues
186158
- sh: bash scripts/osx-setup.sh
187159
build_script:
188160
- sh: bash scripts/osx-translations.sh
@@ -211,4 +183,4 @@ for:
211183
force_update: false
212184
# deploy on tag push only
213185
on:
214-
APPVEYOR_REPO_TAG: true
186+
APPVEYOR_REPO_TAG: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ target/
9090

9191
# pyenv
9292
.python-version
93+
PyfaEnv/
9394

9495
# celery beat schedule file
9596
celerybeat-schedule
@@ -123,3 +124,6 @@ gitversion
123124

124125
*.fsdbinary
125126
/locale/progress.json
127+
128+
# vscode settings
129+
.vscode

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pyfa
22

3-
[![Join us on Slack!](https://pyfainvite.azurewebsites.net/badge.svg)](https://pyfainvite.azurewebsites.net/) [![Build Status](https://travis-ci.org/pyfa-org/Pyfa.svg?branch=master)](https://travis-ci.org/pyfa-org/Pyfa)
3+
[![Build Status](https://ci.appveyor.com/api/projects/status/github/pyfa-org/pyfa?branch=master&svg=true)]([https://travis-ci.org/pyfa-org/Pyfa](https://ci.appveyor.com/project/pyfa-org/pyfa))
44

55
![pyfa](https://user-images.githubusercontent.com/275209/66119992-864be080-e5e2-11e9-994a-3a4368c9fad7.png)
66

config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
evemonMinVersion = "4081"
3030

3131
minItemSearchLength = 3
32+
minItemSearchLengthCjk = 1
3233

3334
pyfaPath = None
3435
savePath = None

0 commit comments

Comments
 (0)