Skip to content

Commit 792d2b1

Browse files
author
lin.zhang
committed
[to #CZPDEV-24907] upgrade README.md
1 parent 8d6cad6 commit 792d2b1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build-fat-binaries.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
if: runner.os == 'macOS'
5757
shell: bash
5858
run: |
59-
DIR="cz_cli/skills/cz-cli/scripts/${{ matrix.target }}"
59+
DIR="pyinstaller/dist/cz-cli"
6060
# Sign all Mach-O binaries (dylib, so, and the main executable)
6161
find "$DIR" -type f \( -name '*.so' -o -name '*.dylib' \) -exec codesign --force --sign - {} +
6262
chmod +x "$DIR/cz-cli"
@@ -65,27 +65,27 @@ jobs:
6565
- name: Ensure executable (Linux)
6666
if: runner.os == 'Linux'
6767
shell: bash
68-
run: chmod +x cz_cli/skills/cz-cli/scripts/${{ matrix.target }}/cz-cli
68+
run: chmod +x pyinstaller/dist/cz-cli/cz-cli
6969

7070
- name: Package as zip
7171
shell: bash
7272
run: |
7373
TARGET="${{ matrix.target }}"
74-
SCRIPTS_DIR="cz_cli/skills/cz-cli/scripts/${TARGET}"
75-
if [ ! -d "$SCRIPTS_DIR" ]; then
76-
echo "Build output not found at $SCRIPTS_DIR"
74+
BUILD_DIR="pyinstaller/dist/cz-cli"
75+
if [ ! -d "$BUILD_DIR" ]; then
76+
echo "Build output not found at $BUILD_DIR"
7777
exit 1
7878
fi
7979
# Include setup script in the zip
8080
if [[ "${{ runner.os }}" == "Windows" ]]; then
81-
cp scripts/setup.bat "$SCRIPTS_DIR/setup.bat"
81+
cp scripts/setup.bat "$BUILD_DIR/setup.bat"
8282
else
83-
cp scripts/setup.sh "$SCRIPTS_DIR/setup.sh"
84-
chmod +x "$SCRIPTS_DIR/setup.sh"
83+
cp scripts/setup.sh "$BUILD_DIR/setup.sh"
84+
chmod +x "$BUILD_DIR/setup.sh"
8585
fi
8686
mkdir -p dist
8787
DIST_ABS="$(cd dist && pwd)"
88-
cd "$SCRIPTS_DIR"
88+
cd "$BUILD_DIR"
8989
if [[ "${{ runner.os }}" == "Windows" ]]; then
9090
7z a -tzip "${DIST_ABS}/cz-cli-${TARGET}.zip" .
9191
else

0 commit comments

Comments
 (0)