Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Support py3 compile in win
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunsu committed Feb 19, 2019
1 parent 3f4ae6d commit 686b25b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[metadata]
name = calculator_of_Onmyoji
description-file =
README.md
author = jiajunsu
home-page = https://github.com/jiajunsu/calculator_of_Onmyoji

Expand Down
23 changes: 9 additions & 14 deletions win_compile.txt
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```

0 comments on commit 686b25b

Please sign in to comment.