Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Angel Mulero Martinez <migmul@gmail.com>2022-01-04 16:52:22 +0300
committerMiguel Angel Mulero Martinez <migmul@gmail.com>2022-01-04 16:52:22 +0300
commita5e880d0140c9faa3308bd06e8bac5f4c72f4993 (patch)
tree9dec736b0ab3225e9793ff1cdf44b7eb7f3ca2de /gulpfile.js
parente43025cffe50eb1453f2da7977506f9a6064c8ff (diff)
Add portable build to windows
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 7d7769a9..9da95533 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -249,8 +249,8 @@ function getRunDebugAppCommand(arch) {
return command;
}
-function getReleaseFilename(platform, ext) {
- return `${metadata.name}_${metadata.version}_${platform}.${ext}`;
+function getReleaseFilename(platform, ext, portable = false) {
+ return `${metadata.name}_${metadata.version}_${platform}${portable ? "-portable" : ""}.${ext}`;
}
function clean_dist() {
@@ -688,7 +688,7 @@ function release_win(arch, appDirectory, done) {
// Create distribution package (zip) for windows and linux platforms
function release_zip(arch, appDirectory) {
const src = path.join(appDirectory, metadata.name, arch, '**');
- const output = getReleaseFilename(arch, 'zip');
+ const output = getReleaseFilename(arch, 'zip', true);
const base = path.join(appDirectory, metadata.name, arch);
return compressFiles(src, base, output, 'Betaflight Configurator');
@@ -885,12 +885,18 @@ function listReleaseTasks(isReleaseBuild, appDirectory) {
}
if (platforms.indexOf('win32') !== -1) {
+ releaseTasks.push(function release_win32_zip() {
+ return release_zip('win32', appDirectory);
+ });
releaseTasks.push(function release_win32(done) {
return release_win('win32', appDirectory, done);
});
}
if (platforms.indexOf('win64') !== -1) {
+ releaseTasks.push(function release_win64_zip() {
+ return release_zip('win64', appDirectory);
+ });
releaseTasks.push(function release_win64(done) {
return release_win('win64', appDirectory, done);
});