add-remote-url.patch 1.4 KB

123456789101112131415161718
  1. diff --git a/build/gulpfile.reh.ts b/build/gulpfile.reh.ts
  2. index cb1a0a5..dacedc3 100644
  3. --- a/build/gulpfile.reh.ts
  4. +++ b/build/gulpfile.reh.ts
  5. @@ -323,3 +323,3 @@ function packageTask(type: string, platform: string, arch: string, sourceFolderN
  6. const productJsonStream = gulp.src(['product.json'], { base: '.' })
  7. - .pipe(jsonEditor({ commit, date: readISODate('out-build'), version }))
  8. + .pipe(jsonEditor({ commit, date: readISODate('out-build'), version, serverDownloadUrlTemplate: 'https://github.com/!!ASSETS_REPOSITORY!!/releases/download/!!RELEASE_VERSION!!/!!APP_NAME_LC!!-reh-${os}-${arch}-!!RELEASE_VERSION!!.tar.gz' }))
  9. .pipe(es.through(function (file) {
  10. diff --git a/build/gulpfile.vscode.ts b/build/gulpfile.vscode.ts
  11. index d3ab651..1000abc 100644
  12. --- a/build/gulpfile.vscode.ts
  13. +++ b/build/gulpfile.vscode.ts
  14. @@ -272,3 +272,3 @@ function packageTask(platform: string, arch: string, sourceFolderName: string, d
  15. const productJsonStream = gulp.src(['product.json'], { base: '.' })
  16. - .pipe(jsonEditor({ commit, date: readISODate('out-build'), checksums, version }))
  17. + .pipe(jsonEditor({ commit, date: readISODate('out-build'), checksums, version, serverDownloadUrlTemplate: 'https://github.com/!!ASSETS_REPOSITORY!!/releases/download/!!RELEASE_VERSION!!/!!APP_NAME_LC!!-reh-${os}-${arch}-!!RELEASE_VERSION!!.tar.gz' }))
  18. .pipe(es.through(function (file) {