Commit graph

11 commits

Author SHA1 Message Date
Vladimir Macko
310f7b5900 Improve robustness of Get-PythonVersionStatus 2018-06-24 01:14:01 +02:00
Babil Golam Sarwar
683c3dc086 Fix native_main.py URL in win_install.ps1 2018-06-08 14:54:23 +10:00
Oliver Blanthorn
2cc5662764
Output exe in artifacts with xpis etc 2018-05-28 14:00:05 +01:00
Babil Golam Sarwar
a940453958 Add -NoPython flag support to win_install.ps1
This patch replaces the previous `-UsePython` flag with `-NoPython`.
Essentially this flag replaces the native messenger installation
behavior with the following new strategy on Windows:

  * Look for Python-3 in user's Windows environment

    - If Python-3 is found, install `native_main.py` as the native
      messenger binary

    - If Python-3 is _not_ found, install `native_main.exe` as the
      native messenger binary
2018-05-20 06:21:35 +10:00
Babil Golam Sarwar
42f5c3d3ca Refactor download URI location in win_install.ps1 2018-05-18 13:37:30 +10:00
Babil Golam Sarwar
bf920989f3 Add compiled native_main.exe support on Windows
This commit adds support for comiling `native_main.py` into
`native_main.exe` using [PyInstaller][0].

By default, the Powershell installer script would use the compiled
EXE version for Windows. However, the old behaviour can achieved by
using the `-UsePython` flag to `win_install.ps1`.

Currently, the `native_main.exe` is built every time
`scripts/build.sh` is invoked. However, this behavior can be
adjusted by invoking the build script as shown below:

```
  PYINSTALLER="0" npm run build
```

[0]: https://www.pyinstaller.org
2018-05-18 11:44:01 +10:00
Babil Golam Sarwar
cc0f74863a Fix minor typo 2018-05-17 10:54:28 +10:00
Babil Golam Sarwar
5878d8e6fd Fix some minor typo and lint errors 2018-05-16 06:05:41 +10:00
Babil Golam Sarwar
a832411f56 Add minor revises to the Powershell script 2018-05-15 12:02:46 +10:00
Babil Golam Sarwar
f301f6549c Overhaul the Powershell script to address comments at #532 2018-05-15 07:39:11 +10:00
Babil Golam Sarwar
b860d046f2 Add native-messenger support for Windows 2018-05-14 17:37:05 +10:00