Skip to content

Commit 66585d2

Browse files
committed
Windows only
1 parent 11e70a2 commit 66585d2

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

.github/workflows/node.js.yml

+2-44
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,11 @@ jobs:
2929
needs: create_release
3030
strategy:
3131
matrix:
32-
os: [windows-latest, ubuntu-latest, macos-latest]
32+
os: [windows-latest]
3333
include:
3434
- os: windows-latest
3535
release_suffix: windows
3636
release_format: exe
37-
- os: ubuntu-latest
38-
release_suffix: ubuntu
39-
release_format: deb
40-
- os: macos-latest
41-
release_suffix: macos
42-
release_format: dmg
4337
runs-on: ${{ matrix.os }}
4438

4539
steps:
@@ -55,12 +49,7 @@ jobs:
5549
with:
5650
bun-version: 'latest'
5751

58-
- name: prepare install
59-
if: matrix.os == 'ubuntu-latest'
60-
run: rm -rf dist/linux-unpacked
61-
62-
- name: Install dependencies
63-
run: bun install
52+
- run: bun install
6453

6554
- run: bun run gitClone
6655
- run: bun run mvRPG
@@ -73,13 +62,6 @@ jobs:
7362
name: rpgjs.${{ matrix.release_format }}
7463
path: dist/rpgjs.${{ matrix.release_format }}
7564

76-
- name: Upload linux appimage
77-
if: matrix.os == 'ubuntu-latest'
78-
uses: actions/upload-artifact@v3
79-
with:
80-
name: rpgjs.AppImage
81-
path: dist/rpgjs.AppImage
82-
8365
- name: Upload .exe.blockmap
8466
if: matrix.release_format == 'exe'
8567
uses: actions/upload-artifact@v3
@@ -116,38 +98,17 @@ jobs:
11698
with:
11799
name: latest.yml
118100
path: ~/
119-
- name: Download dmg
120-
uses: actions/download-artifact@v3
121-
with:
122-
name: rpgjs.dmg
123-
path: ~/
124-
- name: Download deb
125-
uses: actions/download-artifact@v3
126-
with:
127-
name: rpgjs.deb
128-
path: ~/
129-
- name: Download AppImage
130-
uses: actions/download-artifact@v3
131-
with:
132-
name: rpgjs.AppImage
133-
path: ~/
134101
- name: Calculate hashes
135102
id: calc_hash
136103
run: |
137104
echo "::set-output name=blockmaphash::$(sha256sum /home/runner/rpgjs.exe.blockmap|cut -c-64)"
138105
echo "::set-output name=ymlhash::$(sha256sum /home/runner/latest.yml|cut -c-64)"
139106
echo "::set-output name=exehash::$(sha256sum /home/runner/rpgjs.exe|cut -c-64)"
140-
echo "::set-output name=dmghash::$(sha256sum /home/runner/rpgjs.dmg|cut -c-64)"
141-
echo "::set-output name=debhash::$(sha256sum /home/runner/rpgjs.deb|cut -c-64)"
142-
echo "::set-output name=apphash::$(sha256sum /home/runner/rpgjs.AppImage|cut -c-64)"
143107
- name: Perform release
144108
uses: BTS-CM/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
145109
with:
146110
files: |
147111
/home/runner/rpgjs.exe
148-
/home/runner/rpgjs.dmg
149-
/home/runner/rpgjs.deb
150-
/home/runner/rpgjs.AppImage
151112
/home/runner/rpgjs.exe.blockmap
152113
/home/runner/latest.yml
153114
tag_name: ${{ needs.create_release.outputs.tag-name }}
@@ -159,9 +120,6 @@ jobs:
159120
| Platform | SHA256 Checksum |
160121
|---|---|
161122
|[Microsoft Windows](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.exe)|`${{steps.calc_hash.outputs.exehash}}`|
162-
|[MacOS](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.dmg)|`${{steps.calc_hash.outputs.dmghash}}`|
163-
|[Linux Deb](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.deb)|`${{steps.calc_hash.outputs.debhash}}`|
164-
|[Linux AppImage](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.AppImage)|`${{steps.calc_hash.outputs.apphash}}`|
165123
|[EXE blockmap](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/rpgjs.exe.blockmap)|`${{steps.calc_hash.outputs.blockmaphash}}`|
166124
|[Latest.yml](https://github.com/BTS-CM/RPGJS-Electron/releases/download/${{ github.ref_name }}/latest.yml)|`${{steps.calc_hash.outputs.ymlhash}}`|
167125
env:

0 commit comments

Comments
 (0)