update
Some checks failed
Deploy / publish-windows (push) Failing after 19m11s

This commit is contained in:
2025-12-23 22:03:09 +06:00
parent a68aa78ae1
commit 3006a82a0f
2 changed files with 14 additions and 9 deletions

View File

@@ -36,14 +36,14 @@ jobs:
--build-arg TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} --build-arg TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
docker create --name chad-client-windows-container chad-client-windows-builder docker create --name chad-client-windows-container chad-client-windows-builder
docker cp chad-client-windows-container:/app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis ./nsis docker cp chad-client-windows-container:/ ./artifacts
docker rm chad-client-windows-container docker rm chad-client-windows-container
- name: Publish - name: Publish
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
files: | files: |
nsis/** artifacts/**
draft: true draft: true
# publish-web: # publish-web:

View File

@@ -1,13 +1,13 @@
FROM node:lts # === Build ===
FROM node:lts as builder
WORKDIR /app WORKDIR /app
RUN corepack enable yarn RUN corepack enable yarn && yarn set version stable
RUN yarn set version stable
COPY package.json yarn.lock .yarnrc.yml ./ COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install RUN yarn install --immutable
COPY . . COPY . .
ARG COMMIT_SHA=unknown ARG COMMIT_SHA=unknown
@@ -19,11 +19,12 @@ ENV COMMIT_SHA=$COMMIT_SHA \
TAURI_SIGNING_PRIVATE_KEY=$TAURI_SIGNING_PRIVATE_KEY \ TAURI_SIGNING_PRIVATE_KEY=$TAURI_SIGNING_PRIVATE_KEY \
TAURI_SIGNING_PRIVATE_KEY_PASSWORD= TAURI_SIGNING_PRIVATE_KEY_PASSWORD=
RUN apt update && apt install -y \ RUN apt update && apt install -y --no-install-recommends \
nsis \ nsis \
clang \ clang \
lld \ lld \
llvm llvm \
&& rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -37,4 +38,8 @@ RUN yarn tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc
RUN node scripts/generate-updater.mjs RUN node scripts/generate-updater.mjs
RUN ls -la # === Artifacts ===
FROM scratch AS artifacts
COPY --from=builder /app/src-tauri/target/release/bundle/nsis/ /
COPY --from=builder /app/updater.json /