Skip to content

Commit e082388

Browse files
committed
Update paths for binaries to include arch
1 parent 0e5b4c3 commit e082388

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

auto.config.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const allContributorsOptions: IAllContributorsPluginOptions = {
1818
};
1919

2020
const brewOptions: IBrewPluginOptions = {
21-
executable: "./packages/cli/binary/auto-macos.gz",
21+
executable: "./packages/cli/binary/auto-macos-x64.gz",
2222
name: "auto",
2323
};
2424

@@ -36,9 +36,10 @@ export default function rc(): AutoRc {
3636
[
3737
"upload-assets",
3838
[
39-
"./packages/cli/binary/auto-linux.gz",
40-
"./packages/cli/binary/auto-macos.gz",
41-
"./packages/cli/binary/auto-win.exe.gz",
39+
"./packages/cli/binary/auto-linux-x64.gz",
40+
"./packages/cli/binary/auto-macos-x64.gz",
41+
"./packages/cli/binary/auto-macos-arm64.gz",
42+
"./packages/cli/binary/auto-win-x64.exe.gz",
4243
],
4344
],
4445
["npm", npmOptions],

formula-template.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class Auto < Formula
77

88
def install
99
libexec.install Dir["*"]
10-
bin.install libexec/"auto-macos"
11-
mv bin/"auto-macos", bin/"auto"
10+
bin.install libexec/"auto-macos-x64"
11+
mv bin/"auto-macos-x64", bin/"auto"
1212
end
1313

1414
test do

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"docs:build": "yarn docs:generate && ignite build",
3737
"create:plugin": "./scripts/create-plugin.js",
3838
"create:package": "./scripts/create-package.js",
39-
"install-mac": "yarn lerna run bundle --scope=auto && gunzip -c ./packages/cli/binary/auto-macos.gz > /usr/local/bin/auto",
39+
"install-mac": "yarn lerna run bundle --scope=auto && gunzip -c ./packages/cli/binary/auto-macos-x64.gz > /usr/local/bin/auto",
4040
"postinstall": "patch-package"
4141
},
4242
"devDependencies": {

packages/cli/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
"email": "[email protected]"
1212
},
1313
"pkg": {
14-
"scripts": "../../plugins/**/dist/**/*.js"
14+
"scripts": "../../plugins/**/dist/**/*.js",
15+
"targets": [
16+
"linux-x64",
17+
"win-x64",
18+
"macos-x64",
19+
"macos-arm64"
20+
]
1521
},
1622
"publishConfig": {
1723
"registry": "https://registry.npmjs.org/",
@@ -45,7 +51,7 @@
4551
"test": "jest --maxWorkers=2",
4652
"bundle": "yarn inject-version && yarn package && yarn gzip",
4753
"inject-version": "node scripts/inject-version.js",
48-
"package": "rimraf binary && pkg . --out-path binary --targets linux,win,macos-x64,macos-arm64",
54+
"package": "rimraf binary && pkg . --out-path binary",
4955
"gzip": "ls binary/auto* | xargs gzip"
5056
},
5157
"dependencies": {

plugins/brew/README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Brew Plugin
22

3-
Automate the creation of Homebrew formulae.
4-
This plugin can be use with any other package manager plugin.
3+
Automate the creation of Homebrew formulae. This plugin can be use with any other package manager plugin.
54

65
> NOTE: This plugin does not work in `lerna` monorepos that use `independent` versioning.
76
@@ -38,8 +37,7 @@ To use this plugin you will need to add the required configuration and a templat
3837
}
3938
```
4039

41-
Create a template name `./formula-template.rb` at the root of the project (or use the `formula` option to customize the location)/
42-
The template file must be a valid homebrew ruby file.
40+
Create a template name `./formula-template.rb` at the root of the project (or use the `formula` option to customize the location)/ The template file must be a valid homebrew ruby file.
4341

4442
`auto` will replace the following tokens in the template file:
4543

@@ -52,14 +50,14 @@ Here is the template `auto` uses to publish it's own `brew` formula:
5250
class Auto < Formula
5351
desc "Generate releases based on semantic version labels on pull requests."
5452
homepage "https://intuit.github.io/auto/home.html"
55-
url "https://github.com/intuit/auto/releases/download/$VERSION/auto-macos.gz"
53+
url "https://github.com/intuit/auto/releases/download/$VERSION/auto-macos-x64.gz"
5654
version "$VERSION"
5755
sha256 "$SHA"
5856

5957
def install
6058
libexec.install Dir["*"]
61-
bin.install libexec/"auto-macos"
62-
mv bin/"auto-macos", bin/"auto"
59+
bin.install libexec/"auto-macos-x64"
60+
mv bin/"auto-macos-x64", bin/"auto"
6361
end
6462

6563
test do

0 commit comments

Comments
 (0)