Skip to content

Commit

Permalink
fix: macOS dist URL (#75)
Browse files Browse the repository at this point in the history
* fix: macOS dist URL

* Automatic distributive rebuild

* wip: 🔕 temporary commit

* Automatic distributive rebuild

---------

Co-authored-by: tarampampam <[email protected]>
  • Loading branch information
tarampampam and tarampampam committed Mar 16, 2024
1 parent b77c534 commit cc83e55
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## v1.1.1

### Fixed

- URL to the macOS distribution was fixed

## v1.1.0

### Changed
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/index.js
Expand Up @@ -167,6 +167,10 @@ function getMMockURI(platform, arch, version) {
case 'darwin': {
switch (arch) {
case 'x64': // Amd64
if (semver.gte('4.0.0', version)) { // since 4.0.1 the naming has been changed
return `https://github.com/jmartin82/mmock/releases/download/v${version}/mmock_Darwin_x86_64.tar.gz`
}

switch (namingVersion) {
case 1: // old
return `https://github.com/jmartin82/mmock/releases/download/v${version}/mmock_${version}_macOS_64-bit.tar.gz`
Expand Down

0 comments on commit cc83e55

Please sign in to comment.