mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	chore: Makefile adjustment
Previously, `build-release` would produce `.gz` files which had the execute permission set. This modifies the `Makefile` to `chmod -x` the `.gz` files after compression.
This commit is contained in:
		
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							@@ -47,27 +47,27 @@ ci: | setup prepare build
 | 
			
		||||
# cheat-darwin-amd64
 | 
			
		||||
$(dist_dir)/cheat-darwin-amd64: prepare
 | 
			
		||||
	GOARCH=amd64 GOOS=darwin \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-amd64
 | 
			
		||||
$(dist_dir)/cheat-linux-amd64: prepare
 | 
			
		||||
	GOARCH=amd64 GOOS=linux \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-arm5
 | 
			
		||||
$(dist_dir)/cheat-linux-arm5: prepare
 | 
			
		||||
	GOARCH=arm GOOS=linux GOARM=5 \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-arm6
 | 
			
		||||
$(dist_dir)/cheat-linux-arm6: prepare
 | 
			
		||||
	GOARCH=arm GOOS=linux GOARM=6 \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-linux-arm7
 | 
			
		||||
$(dist_dir)/cheat-linux-arm7: prepare
 | 
			
		||||
	GOARCH=arm GOOS=linux GOARM=7 \
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@
 | 
			
		||||
	$(GO) build $(BUILD_FLAGS) -o $@ $(cmd_dir) && $(GZIP) $@ && chmod -x $@.gz
 | 
			
		||||
 | 
			
		||||
# cheat-windows-amd64
 | 
			
		||||
$(dist_dir)/cheat-windows-amd64.exe: prepare
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user