Skip to content

Commit

Permalink
[DDW-1224] Remove process.env.BUILD_COUNTER from `environment.versi…
Browse files Browse the repository at this point in the history
…on` (input-output-hk#3130)

* Remove `process.env.BUILD_COUNTER` from `environment.version`

* Separate buildCounter with dashes (not dots) in artifact filenames
  • Loading branch information
michalrus authored Jun 20, 2023
1 parent 92bc587 commit c90fea0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion installers/common/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ packageFileName uglyName _os cluster ver backend buildJob buildCounter = fromTex
else "x86_64-darwin"
Linux64 -> "x86_64-linux"
buildJob' = maybe [] (\b -> [fromBuildJob b]) buildJob
buildCounter' = "." <> maybe "0" fromBuildJob buildCounter
buildCounter' = "-" <> maybe "0" fromBuildJob buildCounter

instance FromJSON Version where
parseJSON = withObject "Package" $ \o -> Version <$> o .: "version"
Expand Down
2 changes: 1 addition & 1 deletion nix/any-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let

archSuffix = if pkgs.system == "aarch64-darwin" then "arm64" else "x64";
packageVersion = originalPackageJson.version;
installerName = "daedalus-${packageVersion}.${toString sourceLib.buildCounter}-${cluster}-${sourceLib.buildRevShort}-${pkgs.system}";
installerName = "daedalus-${packageVersion}-${toString sourceLib.buildCounter}-${cluster}-${sourceLib.buildRevShort}-${pkgs.system}";

in rec {

Expand Down
2 changes: 1 addition & 1 deletion nix/x86_64-linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ in rec {

wrappedBundle = let
version = (builtins.fromJSON (builtins.readFile ../package.json)).version;
fn = "daedalus-${version}.${toString sourceLib.buildCounter}-${linuxClusterBinName}-${sourceLib.buildRevShort}-x86_64-linux.bin";
fn = "daedalus-${version}-${toString sourceLib.buildCounter}-${linuxClusterBinName}-${sourceLib.buildRevShort}-x86_64-linux.bin";
in pkgs.runCommand fn {} ''
mkdir -p $out
cp ${newBundle} $out/${fn}
Expand Down
2 changes: 1 addition & 1 deletion source/main/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
checkIsLinux,
} from '../common/utils/environmentCheckers';

const version = `${packageJson.version}.${process.env.BUILD_COUNTER || '0'}`;
const version = `${packageJson.version}`;
// Daedalus requires minimum 16 gigabytes of RAM, but some devices having 16 GB
// actually have a slightly smaller RAM size (eg. 15.99 GB), therefore we used 15 GB threshold
//
Expand Down

0 comments on commit c90fea0

Please sign in to comment.