initial commit: tmux cheat sheet alfred workflow
Some checks failed
Build Workflow / build (push) Failing after 6s
Some checks failed
Build Workflow / build (push) Failing after 6s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
22
build/build_workflow.sh
Executable file
22
build/build_workflow.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
OUT_DIR="${ROOT_DIR}/dist"
|
||||
STAGE_DIR="${OUT_DIR}/tmux-workflow"
|
||||
WORKFLOW_FILE="${OUT_DIR}/alfred-tmux-cheat-sheet.alfredworkflow"
|
||||
|
||||
rm -rf "${STAGE_DIR}"
|
||||
mkdir -p "${STAGE_DIR}" "${OUT_DIR}"
|
||||
|
||||
cp "${ROOT_DIR}/info.plist" "${STAGE_DIR}/"
|
||||
cp "${ROOT_DIR}/icon.png" "${STAGE_DIR}/"
|
||||
cp -R "${ROOT_DIR}/scripts" "${STAGE_DIR}/"
|
||||
cp -R "${ROOT_DIR}/data" "${STAGE_DIR}/"
|
||||
|
||||
(
|
||||
cd "${STAGE_DIR}"
|
||||
zip -rq "${WORKFLOW_FILE}" .
|
||||
)
|
||||
|
||||
echo "Created ${WORKFLOW_FILE}"
|
||||
Reference in New Issue
Block a user