Commit graph

1155 commits

Author SHA1 Message Date
Babil Golam Sarwar
edbc97eec2 Require PYINSTALLER=1 to build and sign EXE
A default `npm run build` or a `scripts/build.sh` invocation would
not compile or sign `native_main.exe` anymore. This is a departure
from the previous logic where `PYINSTALLER=0` was needed to prevent
compile+signing of `native_main.exe`.

The following is achieved with this commit:

```
  $ ## following does _not_ compile/sign `native_main.exe`
  $ npm run build
  $ PYINSTALLER=0 npm run build

  $ ## following _does_ compile/sign `native_main.exe`
  $ PYINSTALLER=1 npm run build
```
2018-05-21 06:07:29 +10:00
Babil Golam Sarwar
2f4ddc033e Add minor Windows specific revises to build.sh 2018-05-20 09:32:31 +10: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
2f8689cf3d Add OpenPGP signature support for native_main.exe 2018-05-19 14:14:32 +10:00
Babil Golam Sarwar
f31184fb2e Add test script for native_main.py
An example usage of `test_native_main.py` is added below:

```
  $ ./test_native_main.py "version" | ./native_main.py

  {"version": "0.1.5"}
```
2018-05-18 18:32:56 +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
bf9ccc1807 Fix URLs for :nativeinstall and :nativeupdate 2018-05-18 11:52:15 +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
93e62ba777 Merge branch 'master' of https://github.com/cmcaine/tridactyl 2018-05-18 08:03:13 +10:00
Oliver Blanthorn
13e7bf4e2e
Update readme 2018-05-17 22:45:10 +01:00
Oliver Blanthorn
ec5376f803
Add fixamo to dogfood 2018-05-17 22:16:55 +01:00
Oliver Blanthorn
862fa8b9b2
Update changelog 2018-05-17 22:16:16 +01:00
maxigaz
002b7aae6c
Add fixamo to enable Tridactyl on addons.mozilla.org
No, it's not April Fools' Day.
2018-05-17 22:08:45 +01:00
Oliver Blanthorn
7955daea32
Remove some console.logs 2018-05-17 21:55:14 +01:00
glacambre
771888599e
native_background.ts: implement writePref() 2018-05-17 21:44:29 +01:00
glacambre
b8b1470c86
native_background.ts: implement getPref() 2018-05-17 21:44:29 +01:00
Colin Caine
665f4429db Add more fun functions to itertools 2018-05-17 21:43:22 +01:00
Colin Caine
2f40f990d8 Improve CSP clobbering
- Get csp setting asynchronously
 - Case insensitively match content-security-policy header value
 - Parse csp correctly
 - Simplify code
2018-05-17 21:43:22 +01:00
Colin Caine
d36757cbc8 Fix <C-i> on contenteditable elements 2018-05-17 21:42:47 +01:00
Colin Caine
f4a9fdfc64 Never throw when opening commandline
This is a hack to stop logger.error loops on pages
that cannot open the commandline (e.g. svgs).
2018-05-17 21:42:47 +01:00
Oliver Blanthorn
f87ffbec93
Merge branch 'master' of github.com:cmcaine/tridactyl into maxigaz-master 2018-05-17 21:40:49 +01:00
Oliver Blanthorn
a15fd500b4
Fix #71. 2018-05-17 21:40:38 +01:00
Oliver Blanthorn
a8c0771d9b
Update readme for RC and searchurls 2018-05-17 21:06:15 +01:00
maxigaz
8c2c62d20e Updated caveats on internal FF pages and GUI 2018-05-17 21:50:01 +02:00
Oliver Blanthorn
cb349b477e
Bump native version 2018-05-17 17:34:02 +01:00
Michal Koutný
98df8fff8e
Fix native_main 'temp' command for python < 3.5.0
We are passing None value to mkstemp which is only possible since python
3.5.0 [1]. Let's use our own mask with empty string as the prefix when
None is given. That works with both python API versions.

[1]
ad577b938b
2018-05-17 17:33:36 +01:00
Oliver Blanthorn
303aec957d
Add example use of js to RC file: fix #548 2018-05-17 16:55:19 +01:00
Oliver Blanthorn
da3a1fa84d
Add jsb for eval in the background context 2018-05-17 16:45:55 +01:00
Oliver Blanthorn
25a9c449d6
Fix native not working in the content script 2018-05-17 16:45:19 +01:00
Oliver Blanthorn
d29e4067c6
Merge pull request #551 from peff/fix-bashisms
build.sh: prefer "=" to "==" for comparisons
2018-05-17 15:29:03 +01:00
Jeff King
2533dbe75f build.sh: prefer "=" to "==" for comparisons
The double-equals introduced by de39d704a5 and 19e3363c92
are bash-isms, and cause the script to complain when run
with another POSIX shell (e.g. dash, which is the default
/bin/sh on Debian).

We can just use "=" here, as the two are equivalent.
2018-05-17 07:04:03 -07:00
Oliver Blanthorn
7429f8ca1d
Make mode indicator go purple in private windows 2018-05-17 14:40:30 +01:00
Oliver Blanthorn
17a1b318a6
Ours is not to reason why: fix #544 2018-05-17 13:54:56 +01:00
Oliver Blanthorn
883243e72c
Fix editorcmd = auto on Windows, but for real this time 2018-05-17 13:44:18 +01:00
Oliver Blanthorn
4646211890
Add H,L to tutor 2018-05-17 13:32:58 +01:00
Oliver Blanthorn
1fddb5fe1d
Mention Windows native support on changelog 2018-05-17 13:31:33 +01:00
Oliver Blanthorn
9d2cc21b27
Document viewconfig and ex-aliases on tutor 2018-05-17 13:23:40 +01:00
Oliver Blanthorn
2779eaa719
Fix editorcmd = auto on Windows 2018-05-17 12:48:13 +01:00
Babil Golam Sarwar
aee6d59e01
Fix minor typo 2018-05-17 12:19:55 +01:00
Babil Golam Sarwar
aace162ad4
Remove unneeded PowerShell execution-policy 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
e21c20e383
Add PowerShell ExecutionPolicy in build.sh 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
48e19c9633
Fix :updatenative command on Windows 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
32e74a0e76
Fix some minor typo and lint errors 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
de39d704a5
Fix Python 3 invocation during build on Windows 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
01d103a6ab
Adjust build.sh to use local files 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
00b5e004cf
Add required ExecutionPolicy for Powershell
Powershell by default would prevent execution of unsigned external
scripts. In order to perform the copy/paste installation found via
`:installnative`, we would need to adjust `ExecutationPolicy` to
`Bypass` temporarily under the `Process` scope to allow the initial
installation.
2018-05-17 12:19:54 +01:00
Babil Golam Sarwar
31ee1e37e6
Add minor revises to the Powershell script 2018-05-17 12:19:53 +01:00
Babil Golam Sarwar
be8a3142dc
Add build insturctions for Windows 2018-05-17 12:19:53 +01:00
Babil Golam Sarwar
74326041b3
Overhaul the Powershell script to address comments at #532 2018-05-17 12:19:53 +01:00
Babil Golam Sarwar
c464e00cc1
Add native-messenger support for Windows 2018-05-17 12:19:53 +01:00