From 70278fed6f099a6196b59607532a0f1ccb90a041 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 10 Aug 2020 02:03:13 -0700 Subject: [PATCH] Use short commit hash in "snapshot" build artifact archive filename When you have multiple snapshot builds on your computer for testing purposes, it's difficult to keep track of which is which. The commit hash is shown by the running application, but it's more convenient to have the installation also identified by its folder name. Adding the short commit hash to the build archive filename (and thus the extracted folder name) provides a clear identifier for each build. Before this change, the archive is named like: arduino-pro-ide_snapshot_Linux_64bit.zip after: arduino-pro-ide_0.0.7-snapshot.1b8c510_Linux_64bit.zip --- electron/packager/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/packager/config.js b/electron/packager/config.js index 4225fba7..2a02f046 100644 --- a/electron/packager/config.js +++ b/electron/packager/config.js @@ -15,7 +15,7 @@ function artifactName() { } else if (isNightly) { return `nightly-${timestamp()}` } else { - return 'snapshot'; + return getVersion(); } })(); const name = 'arduino-pro-ide';