From 348d136ef2276e404c21014451f151feaa1b115d Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 20 Oct 2017 09:33:16 +0200 Subject: [PATCH 1/3] Added Github Releases Added github releases with correct whitespace (in all of the files, blame Unix). Added comments on the deployment. Added suggested changes from Rajkosto. --- appveyor.yml | 15 +++++++++++++++ build.sh | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index cfef552b..a680c8f4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,3 +51,18 @@ artifacts: - path: AppVeyor name: 'graphicPacks' type: zip + +deploy: + # Release needs to be the same otherwise it won't overwrite. + release: "Cemu Graphic Packs - Latest Release" + description: "**Updated to $(appveyor_build_version)**" + provider: GitHub + # Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings + auth_token: + secure: 4JvDhDJbAqoItEgXYLZ1QAX3aW5MF7d/klgYFiyCtgGJys2+C0Etd7CZwJzZ8tch + prerelease: false + # Makes it so that it overwrites the previous files. + force_update: true + artifact: /.*\.zip/ + on: + branch: master diff --git a/build.sh b/build.sh index 251f33fa..e68dea5d 100644 --- a/build.sh +++ b/build.sh @@ -33,7 +33,7 @@ build_dir () { do filename=`basename $f` outName="$dstDir/$filename" - #echo "Building $f to $outName with params ${rest[@]}" + echo -e "\t${GREEN}[PHP] ${NC}Exec $f to $outName with params ${rest[@]}" php "$f" "${rest[@]}" > "$outName" if [ $? -ne 0 ]; then @@ -63,7 +63,7 @@ std_respack () { params=( "$@" ) rest=( "${params[@]:1}" ) - echo -e "${GREEN}[Building] ${BCYAN}$gameName ${NC}to ${params[@]:1}" + echo -e "${GREEN}[Building] ${BCYAN}$gameName ${NC}for ${rest[@]}" for arrg in "${rest[@]}" do resvarname="res_${arrg}[@]" From d2ceb67e0083cbd5a9cf043dbbf77c56d8380595 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 20 Oct 2017 13:07:04 +0200 Subject: [PATCH 2/3] Updated Github Releases with full description Here's an example description. It contains some information, but just like a normal commit description doesn't support **markdown**. It does support a few things like newlines. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index a680c8f4..4f1bcaff 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -55,7 +55,7 @@ artifacts: deploy: # Release needs to be the same otherwise it won't overwrite. release: "Cemu Graphic Packs - Latest Release" - description: "**Updated to $(appveyor_build_version)**" + description: "Updated to **$(appveyor_build_version)**\n\n### Changelog:\n**$(appveyor_repo_commit_message)** - Commit $(appveyor_repo_commit):\n```\n$(appveyor_repo_commit_message_extended)\n```\n#### [Installation instructions](https://$(appveyor_account_name).github.io/$(appveyor_project_name)/)" provider: GitHub # Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings auth_token: From 20579de860a83de8fbbe0a782906c3d7bf807392 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 20 Oct 2017 22:16:20 +0200 Subject: [PATCH 3/3] Update Github Releases token to be set in UI This will prepare it to be used for Slashiee's master, which will now make it another option to download the graphic packs. This will prepare it for some under the hood work that I've been making. --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4f1bcaff..dc8ff33f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,7 @@ # Appveyor configuration file for bash build of packs version: v2-{build} environment: + # It's prefered to have the GithubAuthToken (encrypted) set in the UI. Follow this guide for the instructions https://www.appveyor.com/docs/deployment/github/#provider-settings. CYG_MIRROR: http://cygwin.mirror.constant.com CYG_PACKAGES: bash,php,dos2unix matrix: @@ -58,8 +59,7 @@ deploy: description: "Updated to **$(appveyor_build_version)**\n\n### Changelog:\n**$(appveyor_repo_commit_message)** - Commit $(appveyor_repo_commit):\n```\n$(appveyor_repo_commit_message_extended)\n```\n#### [Installation instructions](https://$(appveyor_account_name).github.io/$(appveyor_project_name)/)" provider: GitHub # Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings - auth_token: - secure: 4JvDhDJbAqoItEgXYLZ1QAX3aW5MF7d/klgYFiyCtgGJys2+C0Etd7CZwJzZ8tch + auth_token: $(GithubAuthToken) prerelease: false # Makes it so that it overwrites the previous files. force_update: true