Skip to content

Commit e96a39c

Browse files
committed
feat: add portable zip distributions for Linux and Windows in build process
1 parent 1248c87 commit e96a39c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/build_and_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ jobs:
3131
generate_release_notes: true
3232
files: |
3333
./build/wartlock.AppImage
34-
./build/wartlock.exe
34+
./build/wartlock.exe
35+
./build/win-portable.zip
36+
./build/linux-portable.zip

dockerfiles/linux.dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ WORKDIR /code
44
RUN npm i
55
RUN npm run build:linux
66

7-
FROM scratch AS export-stage
7+
RUN apt-get update && apt-get install -y zip && \
8+
zip -r /code/dist/linux-unpacked.zip /code/dist/linux-unpacked
89

9-
COPY --from=linux_build /code/dist/*.AppImage /output/wartlock.AppImage
10+
FROM scratch AS export-stage
11+
COPY --from=linux_build /code/dist/*.AppImage /wartlock.AppImage
12+
COPY --from=linux_build /code/dist/linux-unpacked.zip ./linux-portable.zip

dockerfiles/win.dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ WORKDIR /code
44
RUN npm i
55
RUN npm run build:win
66

7+
RUN apt-get update && apt-get install -y zip && \
8+
zip -r /code/dist/win-unpacked.zip /code/dist/win-unpacked
9+
710
FROM scratch AS export-stage
8-
COPY --from=build /code/dist/*.exe ./wartlock.exe
11+
COPY --from=build /code/dist/*.exe ./wartlock.exe
12+
COPY --from=build /code/dist/win-unpacked.zip ./win-portable.zip

0 commit comments

Comments
 (0)