File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77# Usage: make appcast app=path/to/bundle.app tag=1.0.0 [channel=beta] [release=1]
88appcast :
9- $(eval TMPDIR := ~/Library/Caches/CopilotForXcodeRelease/$(shell uuidgen) )
9+ $(eval RELEASEDIR := ~/Library/Caches/CopilotForXcodeRelease/$(shell uuidgen) )
1010 $(eval BUNDLENAME := $(shell basename "$(app ) ") )
1111 $(eval WORKDIR := $(shell dirname "$(app ) ") )
1212 $(eval ZIPNAME := $(ZIPNAME_BASE )$(if $(channel ) ,.$(channel ) .$(if $(release ) ,$(release ) ,1) ) )
1313 $(eval RELEASENOTELINK := $(GITHUB_URL ) releases/tag/$(tag ) )
14- mkdir -p $(TMPDIR )
15- cp appcast.xml $(TMPDIR ) /appcast.xml
14+ mkdir -p $(RELEASEDIR )
15+ cp appcast.xml $(RELEASEDIR ) /appcast.xml
1616 cd $(WORKDIR ) && ditto -c -k --sequesterRsrc --keepParent " $( BUNDLENAME) " " $( ZIPNAME) .zip"
17- cd $(WORKDIR ) && cp " $( ZIPNAME) .zip" $(TMPDIR ) /
18- touch $(TMPDIR ) /$(ZIPNAME ) .html
19- echo " <body></body>" > $(TMPDIR ) /$(ZIPNAME ) .html
20- -Core/.build/artifacts/sparkle/bin/generate_appcast $(TMPDIR ) --download-url-prefix " $( GITHUB_URL) releases/download/$( tag) /" --release-notes-url-prefix " $( RELEASENOTELINK) " $(if $(channel ) ,--channel "$(channel ) ")
21- mv -f $(TMPDIR ) /appcast.xml .
22- rm -rf $(TMPDIR )
17+ cd $(WORKDIR ) && cp " $( ZIPNAME) .zip" $(RELEASEDIR ) /
18+ touch $(RELEASEDIR ) /$(ZIPNAME ) .html
19+ echo " <body></body>" > $(RELEASEDIR ) /$(ZIPNAME ) .html
20+ -Core/.build/artifacts/sparkle/bin/generate_appcast $(RELEASEDIR ) --download-url-prefix " $( GITHUB_URL) releases/download/$( tag) /" --release-notes-url-prefix " $( RELEASENOTELINK) " $(if $(channel ) ,--channel "$(channel ) ")
21+ mv -f $(RELEASEDIR ) /appcast.xml .
22+ rm -rf $(RELEASEDIR )
2323 sed -i ' ' ' s/$(ZIPNAME).html/$(tag)/g' appcast.xml
2424
25- .PHONY : setup appcast
25+ .PHONY : setup appcast
You can’t perform that action at this time.
0 commit comments