Skip to content

Commit 4764f33

Browse files
authored
Merge pull request #217 from jumpserver/pr@dev@fix_permission_denied
perf: add executable permissions to installed binaries
2 parents 1f05db5 + f7cc429 commit 4764f33

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

go-client/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ install:
8585
@if [ -d "$(BUILDDIR)/$(CURRENT_OS)-$(CURRENT_ARCH)" ]; then \
8686
echo "Copying $(CURRENT_OS)-$(CURRENT_ARCH) files..."; \
8787
cp -R $(BUILDDIR)/$(CURRENT_OS)-$(CURRENT_ARCH) $(BASEPATH)/../src-tauri/resources/bin/; \
88+
chmod +x $(BASEPATH)/../src-tauri/resources/bin/$(CURRENT_OS)-$(CURRENT_ARCH)/*; \
8889
elif [ "$(CURRENT_OS)" = "windows" ] && [ -d "$(BUILDDIR)/windows" ]; then \
8990
echo "Copying Windows files..."; \
9091
cp -R $(BUILDDIR)/windows $(BASEPATH)/../src-tauri/resources/bin/; \
92+
chmod +x $(BASEPATH)/../src-tauri/resources/bin/windows/*.exe; \
9193
else \
9294
echo "Error: No build files found for $(CURRENT_OS)/$(CURRENT_ARCH)"; \
9395
echo "Available platforms:"; \

0 commit comments

Comments
 (0)