diff --git a/appveyor.yml b/appveyor.yml index cfef552b..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: @@ -51,3 +52,17 @@ 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)**\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: $(GithubAuthToken) + 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}[@]"