Skip to content

Commit 4bb2c26

Browse files
committed
Add full config to deploy version manifests and use correct URLs
1 parent a752962 commit 4bb2c26

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ deploy:
2525
api_key:
2626
secure: BS5tc2PhyIKsw048EG8TxT5HB/EymS8javixTzdpo18+f0BngDfHaTGD9DrXOzepv+4amTdzy0j7K9TdepejMuRDbg+Z3+8IkD0BefqvnnmZZv4ZQFiIdv5VXsAfS9vj0QOOAAwA/oz9rVdA9BEIN/8MNAXClSUT66ciaHLcBq6sr1N9ZEdqaDSYs8UiBEwA7Qnk6Q2/9EuGGozMNrOH5hlyiP0eKtjn4q/PemdBzemGx5KNWFr5zVVYy8kaMB/ELboOUB0AufaOyexsGWJdXSJwOdWUTYWqKsGGXXzdjcW/AT+8tGr968WNmGvg/d2SI2mIbJKrHVk8lc3tbyVfxngUbpZnHMmqtf3JSgTKeIeBMUlrVsh0gUiOU4yYkK2jITqsliREtrZ/ik9QEkw2VXh90A+iUBzeDhHACvPpA8JlPwwtFWu34zdHOyXk/3kVUDINQkVorQ2txwa2yc68a4nbptprHKUqafG0qw8TIViY16T8cZLm0QYJ9hLI1grBR8D9YpqJysSZcJrhUi/GWppzOZm5X0nxd0zvhG1KbmtIc9UgfoUA8rA2srmR9LEhptmWHCVzOeb1WEovm6cV6iKKUnq9jmbYSJPUuiDQPrUeSSGZneRb9rwHXh6Hg2rTo7R3l97/DPPTNF+q0k+qQrXqPvWZk837VmIVaSiMc/8=
2727
file_glob: true
28-
file: dist/httptoolkit-server-*/*
28+
file: dist/*
2929
skip_cleanup: true
3030
on:
3131
repo: httptoolkit/httptoolkit-server

bin/run

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
#!/usr/bin/env node
22

3-
const fs = require('fs')
4-
const path = require('path')
5-
const project = path.join(__dirname, '../tsconfig.json')
6-
const dev = fs.existsSync(project)
7-
8-
if (dev) {
9-
require('ts-node').register({project})
10-
}
11-
12-
require(`../${dev ? 'src' : 'lib'}/cli`).run()
13-
.catch(require('@oclif/errors/handle'))
3+
require('@oclif/command').run()
4+
.catch(require('@oclif/errors/handle'))

package.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,31 @@
6666
],
6767
"license": "Apache-2.0",
6868
"oclif": {
69-
"bin": "httptoolkit-server"
69+
"bin": "httptoolkit-server",
70+
"update": {
71+
"s3": {
72+
"host": "https://github.com/httptoolkit/httptoolkit-server/releases/download/v0.0.3/",
73+
"templates": {
74+
"target": {
75+
"versioned": "<%- channel === 'stable' ? '' : channel + '-' %><%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>",
76+
"manifest": "<%- channel === 'stable' ? '' : channel + '-' %><%- platform %>-<%- arch %>"
77+
},
78+
"vanilla": {
79+
"versioned": "<%- channel === 'stable' ? '' : channel + '-' %><%- bin %>-v<%- version %><%- ext %>",
80+
"manifest": "<%- channel === 'stable' ? '' : channel + '-' %>version"
81+
}
82+
}
83+
},
84+
"node": {
85+
"version": "10.0.0",
86+
"targets": [
87+
"win32-x64",
88+
"win32-x86",
89+
"linux-x64",
90+
"linux-arm",
91+
"darwin-x64"
92+
]
93+
}
94+
}
7095
}
7196
}

0 commit comments

Comments
 (0)