Skip to content

Commit

Permalink
Add full config to deploy version manifests and use correct URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 26, 2018
1 parent a752962 commit 4bb2c26
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deploy:
api_key:
secure: BS5tc2PhyIKsw048EG8TxT5HB/EymS8javixTzdpo18+f0BngDfHaTGD9DrXOzepv+4amTdzy0j7K9TdepejMuRDbg+Z3+8IkD0BefqvnnmZZv4ZQFiIdv5VXsAfS9vj0QOOAAwA/oz9rVdA9BEIN/8MNAXClSUT66ciaHLcBq6sr1N9ZEdqaDSYs8UiBEwA7Qnk6Q2/9EuGGozMNrOH5hlyiP0eKtjn4q/PemdBzemGx5KNWFr5zVVYy8kaMB/ELboOUB0AufaOyexsGWJdXSJwOdWUTYWqKsGGXXzdjcW/AT+8tGr968WNmGvg/d2SI2mIbJKrHVk8lc3tbyVfxngUbpZnHMmqtf3JSgTKeIeBMUlrVsh0gUiOU4yYkK2jITqsliREtrZ/ik9QEkw2VXh90A+iUBzeDhHACvPpA8JlPwwtFWu34zdHOyXk/3kVUDINQkVorQ2txwa2yc68a4nbptprHKUqafG0qw8TIViY16T8cZLm0QYJ9hLI1grBR8D9YpqJysSZcJrhUi/GWppzOZm5X0nxd0zvhG1KbmtIc9UgfoUA8rA2srmR9LEhptmWHCVzOeb1WEovm6cV6iKKUnq9jmbYSJPUuiDQPrUeSSGZneRb9rwHXh6Hg2rTo7R3l97/DPPTNF+q0k+qQrXqPvWZk837VmIVaSiMc/8=
file_glob: true
file: dist/httptoolkit-server-*/*
file: dist/*
skip_cleanup: true
on:
repo: httptoolkit/httptoolkit-server
Expand Down
13 changes: 2 additions & 11 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
#!/usr/bin/env node

const fs = require('fs')
const path = require('path')
const project = path.join(__dirname, '../tsconfig.json')
const dev = fs.existsSync(project)

if (dev) {
require('ts-node').register({project})
}

require(`../${dev ? 'src' : 'lib'}/cli`).run()
.catch(require('@oclif/errors/handle'))
require('@oclif/command').run()
.catch(require('@oclif/errors/handle'))
27 changes: 26 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@
],
"license": "Apache-2.0",
"oclif": {
"bin": "httptoolkit-server"
"bin": "httptoolkit-server",
"update": {
"s3": {
"host": "https://github.com/httptoolkit/httptoolkit-server/releases/download/v0.0.3/",
"templates": {
"target": {
"versioned": "<%- channel === 'stable' ? '' : channel + '-' %><%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>",
"manifest": "<%- channel === 'stable' ? '' : channel + '-' %><%- platform %>-<%- arch %>"
},
"vanilla": {
"versioned": "<%- channel === 'stable' ? '' : channel + '-' %><%- bin %>-v<%- version %><%- ext %>",
"manifest": "<%- channel === 'stable' ? '' : channel + '-' %>version"
}
}
},
"node": {
"version": "10.0.0",
"targets": [
"win32-x64",
"win32-x86",
"linux-x64",
"linux-arm",
"darwin-x64"
]
}
}
}
}

0 comments on commit 4bb2c26

Please sign in to comment.