Skip to content

Commit

Permalink
Fix typo in macOS pkg installer build script
Browse files Browse the repository at this point in the history
  • Loading branch information
paulober committed Sep 4, 2023
1 parent 53c83fd commit 775476d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/.goreleaser.generated.yml
/script/build
/script/build.exe
/pkg_payload
/build/macOS/resources

# VS Code
.vscode
Expand Down
5 changes: 3 additions & 2 deletions script/pkgmacos
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ amd64_bin="dist/macos_darwin_amd64_v1$bin_path"
payload_root="pkg_payload"
payload_local_bin="${payload_root}/usr/local/bin"
payload_zsh_site_functions="${payload_root}/usr/local/share/zsh/site-functions"
payload_man1="${pkg_payload}/usr/local/share/man/man1"
payload_man1="${payload_root}/usr/local/share/man/man1"

merge_binaries() {
lipo -create -output "${payload_local_bin}/gh" "$arm64_bin" "$amd64_bin"
Expand All @@ -57,7 +57,7 @@ build_pkg() {
mkdir -p "${payload_zsh_site_functions}"

# copy man pages
for file in "./share/man/man1/gh*.1"; do
for file in ./share/man/man1/gh*.1; do
cp "$file" "${payload_man1}"
done
# Include only Zsh completions,
Expand All @@ -78,6 +78,7 @@ build_pkg() {
# setup resources
mkdir "build/macOS/resources"
cp "LICENSE" "build/macOS/resources"
touch .gi

# build distribution
if [ -n "$APPLE_DEVELOPER_INSTALLER_ID" ]; then
Expand Down

0 comments on commit 775476d

Please sign in to comment.