Commit graph

96 commits

Author SHA1 Message Date
Colin Caine
8387846cda scripts/pretty prettify working tree copy if it matches staged version 2018-08-29 11:24:34 +01:00
Colin Caine
093f065580 scripts/pretty no longer modify working tree
Trying to avoid race conditions with your editor both in reading the
working tree and modifying the index (git staging area).
2018-08-29 10:34:03 +01:00
William G Hatch
e77e2a07fb use /usr/bin/env to find bash 2018-08-24 13:38:49 -06:00
glacambre
b13956010c
Add list of static themes to generated metadata 2018-08-16 20:56:19 +02:00
glacambre
72db29b298
Move metadata.ts -> .metadata.generated.ts 2018-08-05 18:38:28 +02:00
glacambre
35466971b7
Implement basic excmd completion
This implements excmd completion. We're using the typescript compiler
API in order to get the documentation and the type of every function of
Tridactyl and generate a file named "src/metadata.ts" which contains
this information. Since this file is dependency-less it can be imported
from every source file.

We then write a regular completion source which just uses the data
contained in metadata.ts in order to generate its completions.
2018-08-05 17:12:49 +02:00
Oliver Blanthorn
47f90395eb
Rerename Windows native install script 2018-07-25 14:39:59 +01:00
Oliver Blanthorn
02bb39a1cb
Fix weekly beta users 2018-07-23 15:35:16 +01:00
Oliver Blanthorn
6aef512fce
Dedupe people with dodgy email addresses 2018-07-23 12:31:44 +01:00
Babil Golam Sarwar
02c76e0f00
Fix PowerShell auto-close when native-messenger installation fails 2018-07-11 17:08:44 +10:00
Oliver Blanthorn
3f445de847
Add script for finding number of weekly users on buildbot 2018-07-02 13:24:53 +01:00
Oliver Blanthorn
9818f8d0cb
Change changelog notification to small nag bar 2018-06-17 18:35:48 +01:00
glacambre
125759b483
Keep newtab's changelog button grey once changelog has been read 2018-06-16 15:55:33 +02:00
Colin Caine
e710296d70 Fix authors not appearing when run non-interactively
git shortlog behaves differently when it's run non-interactively.
2018-06-08 13:34:41 +01:00
Colin Caine
5458f67a69 Add debugging to author script
Trying to find issue with buildbot
2018-06-08 13:19:03 +01:00
glacambre
54faf82428
scripts/{pretty,common}: Fix pretty failing on multiple files
When trying to run scripts/pretty with multiple ugly files staged, the
for loop would treat two space-separated file names as a single file
name. This prevented pretty from working on my machine.

I fixed this issue by making cachedJS() (renamed to cachedFiles since it
returns more than js files) return file names as a newline-separated
list and using IFS=$'\n' to split the filenames on this character.
2018-06-03 16:08:45 +02:00
Oliver Blanthorn
58c3eba08c
Make pyinstaller actually test that it works 2018-05-28 15:01:26 +01:00
Colin Caine
dba79b79bd
Try to fix winpython extraction 2018-05-28 14:54:34 +01:00
Oliver Blanthorn
595a49d0fb
Merge branch 'master' of github.com:cmcaine/tridactyl into gsbabil-gsbabil/windows-compiled-native-messenger-support 2018-05-28 14:16:57 +01:00
Oliver Blanthorn
2cc5662764
Output exe in artifacts with xpis etc 2018-05-28 14:00:05 +01:00
Colin Caine
c9df9b5f14
Fix hardcoded directory dependencies 2018-05-28 13:12:07 +01:00
Oliver Blanthorn
7d6491e982
Hide pyinstaller directory 2018-05-28 11:34:13 +01:00
Oliver Blanthorn
e159a83ae1
Add more cds to fix the cds 2018-05-28 11:30:06 +01:00
Oliver Blanthorn
e407fc08fa
Fix pyinstaller testing 2018-05-28 11:14:06 +01:00
Oliver Blanthorn
352863d98d
Merge pull request #620 from gsbabil/gsbabil/add-appveyor-windows-build-support
Add build with Windows support on AppVeyor
2018-05-28 10:24:00 +01:00
Oliver Blanthorn
b8e9d4a088
Remove global dependency on nearley,typedoc,marked 2018-05-28 10:22:17 +01:00
Babil Golam Sarwar
365d2b17e1 Add script to support PyInstaller under Wine
On a vanilla invocation, `wine-pyinstaller.sh` will prepare a
Python-3.5 environment under Wine-3. The current requirements to run
the script are following:

  1. p7zip-16.xx
  2. Wine-3.xx
  3. WinPython-3.5.4

All of [1-3] are available in Debian Testing or Ubuntu Bionic
repositories.

P.S.

WinPython was used since official Python-3.5.4 from Python.org wont
run under Wine. Python-3.6 is not supported yet under Wine-3.xx.
2018-05-28 14:17:55 +10:00
Babil Golam Sarwar
8cfdbfa7dd Allow build under both MSYS or MINGW 2018-05-28 14:07:46 +10:00
Oliver Blanthorn
a8995d5f62
Merge branch 'master' of github.com:cmcaine/tridactyl into sumnerevans-css-prettier-compliance 2018-05-25 09:34:18 +01:00
Oliver Blanthorn
6128ea5a80 Include .git directory in archive for reviewers 2018-05-24 20:02:34 +01:00
Sumner Evans
de9d1f237e
Ran prettier on all CSS files 2018-05-24 08:53:51 -06:00
Sumner Evans
5164160375
#606 added .md files to list of files that need to be checked by prettier 2018-05-24 08:10:56 -06:00
Oliver Blanthorn
98ad63cfc8
Improve discoverability of contributors 2018-05-23 15:39:40 +01:00
Colin Caine
d35e0c3411 Clarify movement message 2018-05-21 16:34:39 +01:00
Colin Caine
0d7fdb1abf Save one intermediate file 2018-05-21 16:31:50 +01:00
Colin Caine
6e44bef6bd Teach lint,pretty to operate on staged copy
Gets a bit crazy.
2018-05-21 16:24:52 +01:00
Colin Caine
ad261b2e4f Fix {pretty,lint} when staging more than one file 2018-05-21 15:30:57 +01:00
Colin Caine
9951830d53 /bin/env -> /usr/bin/env 2018-05-21 03:39:32 +01:00
Colin Caine
e6c2da19d5 Quote * in bodgecss 2018-05-21 01:22:43 +01:00
Babil Golam Sarwar
6fe643cb75 Conditionally add pyinstaller as a prerequisite 2018-05-21 09:07:43 +10:00
Babil Golam Sarwar
7026647e11 Fix shebang path to env in bodgecss.sh 2018-05-21 09:06:50 +10:00
Babil Golam Sarwar
dd21250b5d Merge branch 'master' of https://github.com/cmcaine/tridactyl into 'gsbabil/windows-compiled-native-messenger-support' 2018-05-21 08:53:14 +10:00
Babil Golam Sarwar
ad3e2d51f7 Disable GPG signing of the EXE for now 2018-05-21 08:32:28 +10:00
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
Oliver Blanthorn
535dd5bb67
Make injection of theme scripts automatic 2018-05-20 16:22:45 +01:00
Bruno Oliveira
0feaa3d2ca
Improve Tridactyl theming capabilities 2018-05-20 16:22:46 +01:00
Babil Golam Sarwar
2f4ddc033e Add minor Windows specific revises to build.sh 2018-05-20 09:32:31 +10:00
Babil Golam Sarwar
2f8689cf3d Add OpenPGP signature support for native_main.exe 2018-05-19 14:14:32 +10:00
Colin Caine
d28fc7f0f6 Add npm run {lint,pretty}
Lint is an alias to hooks/pre-commit. Code shared in scripts/common.
2018-05-18 16:03:11 +01: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