Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.1"
".": "0.1.2"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.1.2 (2026-02-27)

Full Changelog: [v0.1.1...v0.1.2](https://github.com/beeper/desktop-api-cli/compare/v0.1.1...v0.1.2)

### Bug Fixes

* more gracefully handle empty stdin input ([d758018](https://github.com/beeper/desktop-api-cli/commit/d75801861b11dfd1cb5568e2b5da3eb0176b7c21))


### Chores

* zip READMEs as part of build artifact ([d1a1267](https://github.com/beeper/desktop-api-cli/commit/d1a12679c7c0366a8a50972010874bc9e9a6d643))

## 0.1.1 (2026-02-25)

Full Changelog: [v0.1.0...v0.1.1](https://github.com/beeper/desktop-api-cli/compare/v0.1.0...v0.1.1)
Expand Down
5 changes: 4 additions & 1 deletion pkg/cmd/flagoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,16 @@ func flagOptions(
flagContents := requestflag.ExtractRequestContents(cmd)

var bodyData any
var pipeData []byte
if isInputPiped() && !stdinInUse {
var err error
pipeData, err := io.ReadAll(os.Stdin)
pipeData, err = io.ReadAll(os.Stdin)
if err != nil {
return nil, err
}
}

if len(pipeData) > 0 {
if err := yaml.Unmarshal(pipeData, &bodyData); err == nil {
if bodyMap, ok := bodyData.(map[string]any); ok {
if flagMap, ok := flagContents.Body.(map[string]any); ok {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmd

const Version = "0.1.1" // x-release-please-version
const Version = "0.1.2" // x-release-please-version
18 changes: 12 additions & 6 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ BINARY_NAME="beeper-desktop-cli"
DIST_DIR="dist"
FILENAME="dist.zip"

mapfile -d '' files < <(
find "$DIST_DIR" -regextype posix-extended -type f \
-regex ".*/[^/]*(amd64|arm64)[^/]*/${BINARY_NAME}(\\.exe)?$" -print0
)
files=()
while IFS= read -r -d '' file; do
files+=("$file")
done < <(find "$DIST_DIR" -type f \( \
-path "*amd64*/$BINARY_NAME" -o \
-path "*arm64*/$BINARY_NAME" -o \
-path "*amd64*/${BINARY_NAME}.exe" -o \
-path "*arm64*/${BINARY_NAME}.exe" \
\) -print0)

if [[ ${#files[@]} -eq 0 ]]; then
echo -e "\033[31mNo binaries found for packaging.\033[0m"
Expand All @@ -20,7 +25,8 @@ rm -f "${DIST_DIR}/${FILENAME}"
while IFS= read -r -d '' dir; do
printf "Remove the quarantine attribute before running the executable:\n\nxattr -d com.apple.quarantine %s\n" \
"$BINARY_NAME" >"${dir}/README.txt"
done < <(find "$DIST_DIR" -type d -name '*macos*' -print0)
files+=("${dir}/README.txt")
done < <(find "$DIST_DIR" -type d -path '*macos*' -print0)

relative_files=()
for file in "${files[@]}"; do
Expand All @@ -46,7 +52,7 @@ UPLOAD_RESPONSE=$(curl -v -X PUT \

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/beeper-desktop-api-cli/$SHA/$FILENAME'. On macOS, run `xattr -d com.apple.quarantine {executable name}.`\033[0m"
echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/beeper-desktop-api-cli/$SHA/$FILENAME'. On macOS, run 'xattr -d com.apple.quarantine {executable name}'.\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
Expand Down
Loading