File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,6 +108,27 @@ jobs:
108108 --linux deb AppImage \
109109 --${{ matrix.arch }}
110110
111+ - name : Normalize artifact names
112+ env :
113+ TAG_NAME : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
114+ run : |
115+ set -euo pipefail
116+ VERSION="${TAG_NAME#v}"
117+ if [[ "${{ matrix.arch }}" == "x64" ]]; then
118+ CANON_ARCH="amd64"
119+ elif [[ "${{ matrix.arch }}" == "arm64" ]]; then
120+ CANON_ARCH="arm64"
121+ else
122+ echo "Unsupported matrix arch: ${{ matrix.arch }}" >&2
123+ exit 1
124+ fi
125+
126+ DEB_FILE="$(ls -1 dist/*.deb | head -n1)"
127+ APPIMAGE_FILE="$(ls -1 dist/*.AppImage | head -n1)"
128+
129+ mv -f "${DEB_FILE}" "dist/codex-desktop-${VERSION}-linux-${CANON_ARCH}.deb"
130+ mv -f "${APPIMAGE_FILE}" "dist/codex-desktop-${VERSION}-linux-${CANON_ARCH}.AppImage"
131+
111132 - name : Verify packaged CLI binary
112133 env :
113134 APP_OUT_DIR : ${{ matrix.arch == 'arm64' && 'dist/linux-arm64-unpacked' || 'dist/linux-unpacked' }}
You can’t perform that action at this time.
0 commit comments