This repository has been archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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``` |