Skip to content

Commit eb030b7

Browse files
committed
fix: make sure binaries are executable
1 parent 1ca1cb3 commit eb030b7

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ jobs:
140140
with:
141141
# no name - download all artifacts
142142
path: "app/build/collected-binaries"
143+
- name: "Make sure downloaded binaries are executable"
144+
if: "${{ matrix.platform.name == 'linux-x86_64' }}"
145+
run: |
146+
find app/build/collected-binaries -type f -name "spotless*" -exec chmod +x {} \;
147+
- name: "Make sure downloaded binaries are executable"
148+
if: "${{ matrix.platform.name == 'windows-x86_64' }}"
149+
run: |
150+
for /r "app\build\collected-binaries" %%f in (spotless*) do (
151+
icacls "%%f" /grant Everyone:RX
152+
)
143153
- name: "Prepare release zips for distribution"
144154
run: "./gradlew -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
145155
- name: "Prepare jreleaser for distribution"

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
with:
8585
# no name - download all artifacts
8686
path: "app/build/collected-binaries"
87+
- name: "Make sure downloaded binaries are executable"
88+
run: |
89+
find app/build/collected-binaries -type f -name "spotless*" -exec chmod +x {} \;
8790
- name: "Prepare release zips for distribution"
8891
run: "./gradlew -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
8992
- name: "Create release"
@@ -136,6 +139,11 @@ jobs:
136139
with:
137140
# no name - download all artifacts
138141
path: "app/build/collected-binaries"
142+
- name: "Make sure downloaded binaries are executable"
143+
run: |
144+
for /r "app\build\collected-binaries" %%f in (spotless*) do (
145+
icacls "%%f" /grant Everyone:RX
146+
)
139147
- name: "Prepare release zips for distribution"
140148
run: "./gradlew -Prelease=true -PreleaseForceVersion=${{ github.event.inputs.force_version }} -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
141149
- name: "Prepare jreleaser for distribution"

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Fixed
10+
- Make sure release binaries are executable on unix systems
911

1012
## [0.1.0] - 2025-04-25
1113
### Added

0 commit comments

Comments
 (0)