From 686b25b528190fb93e7f352167714a7ccd918ba4 Mon Sep 17 00:00:00 2001 From: JiaJunsu Date: Tue, 19 Feb 2019 23:49:02 +0800 Subject: [PATCH] Support py3 compile in win --- setup.cfg | 2 -- win_compile.txt | 23 +++++++++-------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/setup.cfg b/setup.cfg index 5ba5834..91216ac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,5 @@ [metadata] name = calculator_of_Onmyoji -description-file = - README.md author = jiajunsu home-page = https://github.com/jiajunsu/calculator_of_Onmyoji diff --git a/win_compile.txt b/win_compile.txt index e538373..709fb2e 100644 --- a/win_compile.txt +++ b/win_compile.txt @@ -1,28 +1,23 @@ -See: https://github.com/jiajunsu/calculator_of_Onmyoji/issues/2 - -Destination platform: win 64bit +Destination platform: win ------------------------------- ### Requirments: -> wine -> python-2.7.15.amd64.msi +> python >= 3.6 ### Note: -1.Change pip.ini in wine -> ~/.wine/drive_c/users/root/pip/pip.ini - -2.Must run setup.py install before compile +1.Must run setup.py install before compile -3.Update UI files +2.Update UI files ```cp calculator_of_Onmyoji/templates dist/ -r; cp calculator_of_Onmyoji/static dist -r;cp calculator_of_Onmyoji/server.conf dist``` ### Compile: -```wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/cal_mitama.py -p /usr/local/lib/python2.7/dist-packages/ ;wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/pull_mitama.py -p /usr/lib/python2.7/dist-packages/ -p /usr/local/lib/python2.7/dist-packages/ ; wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/convert_json2xls.py -p /usr/lib/python2.7/dist-packages/ -p /usr/local/lib/python2.7/dist-packages/; wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/result_combination.py -p ~/.wine/drive_c/Python27/Lib/site-packages/; wine ~/.wine/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/cm_server.py -p ~/.wine/drive_c/Python27/Lib/site-packages/ -p /usr/local/lib/python2.7/dist-packages/ -i calculator_of_Onmyoji/static/favicon.ico``` +```pyinstaller.exe -F calculator_of_Onmyoji/cal_mitama.py``` +```pyinstaller.exe -F calculator_of_Onmyoji/pull_mitama.py``` -### For 32bit +```pyinstaller.exe -F calculator_of_Onmyoji/convert_json2xls.py``` -```export WINEARCH=win32; export WINEPREFIX=~/.wine32``` +```pyinstaller.exe -F calculator_of_Onmyoji/result_combination.py``` -```wine ~/.wine32/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/cal_mitama.py -p /usr/local/lib/python2.7/dist-packages/ ;wine ~/.wine32/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/pull_mitama.py -p /usr/lib/python2.7/dist-packages/ -p /usr/local/lib/python2.7/dist-packages/ ; wine ~/.wine32/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/convert_json2xls.py -p /usr/lib/python2.7/dist-packages/ -p /usr/local/lib/python2.7/dist-packages/; wine ~/.wine32/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/result_combination.py -p ~/.wine32/drive_c/Python27/Lib/site-packages/; wine ~/.wine32/drive_c/Python27/Scripts/pyinstaller.exe -F calculator_of_Onmyoji/cm_server.py -p ~/.wine32/drive_c/Python27/Lib/site-packages/ -i calculator_of_Onmyoji/static/favicon.ico``` +```pyinstaller.exe -F calculator_of_Onmyoji/cm_server.py -i calculator_of_Onmyoji/static/favicon.ico```