CLI/TUI for drafting, repeating, and publishing daily standup updates as GitHub issues
github go cli golang management project tui daily
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(scripts): correct os/arch names and asset url format

+26 -8
+26 -8
scripts/install.sh
··· 13 13 14 14 case "$OS" in 15 15 Linux) 16 - GOOS="Linux" 16 + GOOS="linux" 17 17 ;; 18 18 Darwin) 19 - GOOS="Darwin" 19 + GOOS="darwin" 20 20 ;; 21 21 CYGWIN*|MINGW*|MSYS*) 22 - GOOS="Windows" 22 + GOOS="windows" 23 23 ;; 24 24 *) 25 25 echo "Error: Unsupported operating system: $OS" >&2 ··· 29 29 30 30 case "$ARCH" in 31 31 x86_64|amd64) 32 - GOARCH="x86_64" 32 + GOARCH="amd64" 33 33 ;; 34 34 arm64|aarch64) 35 35 GOARCH="arm64" ··· 42 42 43 43 # Get latest release version 44 44 echo "Fetching latest release..." 45 - LATEST=$(curl -fsSL -H "User-Agent: pad-installer" "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name":' | head -1 | sed -E 's/.*"tag_name".*"([^"]+)".*/\1/') 45 + LATEST=$(curl -fsSL -H "User-Agent: pad-installer" "https://api.github.com/repos/$REPO/releases/latest" | sed -E 's/.*"tag_name":"([^"]+)".*/\1/') 46 46 47 47 if [ -z "$LATEST" ]; then 48 48 echo "Error: Could not determine latest release" >&2 ··· 50 50 fi 51 51 52 52 echo "Latest version: $LATEST" 53 + 54 + # Strip 'v' prefix for asset filename 55 + VERSION_NO_V=$(echo "$LATEST" | sed 's/^v//') 53 56 54 57 # Create temp directory 55 58 TMP_DIR=$(mktemp -d) ··· 57 60 58 61 # Download release 59 62 echo "Downloading pad for $GOOS/$GOARCH..." 60 - DOWNLOAD_URL="https://github.com/$REPO/releases/download/$LATEST/pad_${GOOS}_${GOARCH}.tar.gz" 61 63 62 - if ! curl -fsSL "$DOWNLOAD_URL" -o "$TMP_DIR/pad.tar.gz"; then 64 + if [ "$GOOS" = "windows" ]; then 65 + DOWNLOAD_URL="https://github.com/$REPO/releases/download/$LATEST/pad_${VERSION_NO_V}_${GOOS}_${GOARCH}.zip" 66 + else 67 + DOWNLOAD_URL="https://github.com/$REPO/releases/download/$LATEST/pad_${VERSION_NO_V}_${GOOS}_${GOARCH}.tar.gz" 68 + fi 69 + 70 + if [ "$GOOS" = "windows" ]; then 71 + ARCHIVE_PATH="$TMP_DIR/pad.zip" 72 + else 73 + ARCHIVE_PATH="$TMP_DIR/pad.tar.gz" 74 + fi 75 + 76 + if ! curl -fsSL "$DOWNLOAD_URL" -o "$ARCHIVE_PATH"; then 63 77 echo "Error: Failed to download $DOWNLOAD_URL" >&2 64 78 exit 1 65 79 fi 66 80 67 81 # Extract 68 82 echo "Extracting..." 69 - tar -xzf "$TMP_DIR/pad.tar.gz" -C "$TMP_DIR" 83 + if [ "$GOOS" = "windows" ]; then 84 + unzip -q "$ARCHIVE_PATH" -d "$TMP_DIR" 85 + else 86 + tar -xzf "$ARCHIVE_PATH" -C "$TMP_DIR" 87 + fi 70 88 71 89 # Create install directory if needed 72 90 if [ ! -d "$INSTALL_DIR" ]; then