Skip to content

Commit 876e6fd

Browse files
author
Jérôme FERET
committed
replace curl with wget
1 parent d178132 commit 876e6fd

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@ jobs:
172172
with:
173173
name: macos-dist
174174
path: Kappapp.app.zip
175+
- name: Deploy Windows release
176+
uses: WebFreak001/deploy-nightly@v3.2.0
177+
with:
178+
upload_url: https://uploads.github.com/repos/Kappa-Dev/KappaTools/releases/308266490/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
179+
release_id: 308266490 # same as above (id can just be taken out the upload_url, it's used to find old releases)
180+
asset_path: ./Kappapp.app.zip # path to archive to upload
181+
asset_name: Kappapp.app.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
182+
asset_content_type: application/zip # required by GitHub API
183+
max_releases: 2# optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
184+
ignore_hash: true # optional, if there is already a release associated with the repo's current commit, should we go ahead and upload the asset anyway.
185+
175186

176187
webapp-windows:
177188
runs-on: windows-2022

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ build/KappappWin:
188188
+$(MAKE) APP_EXT=local build/site/index.html
189189
dune build --only-packages kappa-library,kappa-binaries,kappa-agents
190190
FILE=$$(mktemp -t electronXXXX); \
191-
curl -LsS -o $$FILE https://github.com/electron/electron/releases/download/v$(ELECTRON_VERSION)/electron-v$(ELECTRON_VERSION)-win32-x64.zip && \
191+
wget -o $$FILE https://github.com/electron/electron/releases/download/v$(ELECTRON_VERSION)/electron-v$(ELECTRON_VERSION)-win32-x64.zip && \
192192
unzip $$FILE -d build/KappappWin
193193
mv build/site build/KappappWin/resources/app
194194
mv build/KappappWin/electron.exe build/KappappWin/Kappapp.exe

0 commit comments

Comments
 (0)