File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 88appcast :
99 $(eval TMPDIR := ~/Library/Caches/CopilotForXcodeRelease/$(shell uuidgen) )
1010 $(eval BUNDLENAME := $(shell basename "$(app ) ") )
11- $(eval ZIPNAME := $(ZIPNAME_BASE ) .$(if $(channel ) ,$(channel ) .)$(if $(release ) ,$(release ) ,1) .zip)
11+ $(eval WORKDIR := $(shell dirname "$(app ) ") )
12+ $(eval ZIPNAME := $(ZIPNAME_BASE )$(if $(channel ) ,.$(channel ) .$(if $(release ) ,$(release ) ,1) ) )
13+ $(eval RELEASENOTELINK := $(GITHUB_URL ) releases/tag/$(tag ) )
1214 mkdir -p $(TMPDIR )
1315 cp appcast.xml $(TMPDIR ) /appcast.xml
14- cd " $( app) " && cd .. && zip -r " $( ZIPNAME) " " $( BUNDLENAME) "
15- cd " $( app) " && cd .. && cp " $( ZIPNAME) " $(TMPDIR ) /
16- -Core/.build/artifacts/sparkle/bin/generate_appcast $(TMPDIR ) --download-url-prefix " $( GITHUB_URL) releases/download/$( tag) /" --full-release-notes-url " $( GITHUB_URL) releases/tag/$( tag) " $(if $(channel ) ,--channel "$(channel ) ")
16+ 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 ) ")
1721 mv -f $(TMPDIR ) /appcast.xml .
1822 rm -rf $(TMPDIR )
23+ sed -i ' ' ' s/$(ZIPNAME).html/$(tag)/g' appcast.xml
1924
2025.PHONY : setup appcast
You can’t perform that action at this time.
0 commit comments