Skip to content

Commit a19ff59

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

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ jobs:
140140
with:
141141
# no name - download all artifacts
142142
path: "app/build/collected-binaries"
143+
- name: "Make sure downloaded binaries are executable"
144+
run: |
145+
find app/build/collected-binaries -type f -name "spotless*" -exec chmod +x {} \;
143146
- name: "Prepare release zips for distribution"
144147
run: "./gradlew -PreleaseBinariesRootDir=app/build/collected-binaries prepareReleaseBinaryZips"
145148
- 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)