-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.17.0-Release'
- Loading branch information
Showing
16 changed files
with
333 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmd: "sh .scripts/deploy.sh" | ||
name: "Deploy Retail" | ||
args: | ||
- "{FILE_ACTIVE_PATH}" | ||
|
||
errorMatch: | ||
- <ERROR>(?<message>.+) | ||
warningMatch: | ||
- <WARNING>(?<message>.+) | ||
|
||
targets: | ||
PTR: | ||
name: "Deploy PTR" | ||
cmd: "sh .scripts/deploy.sh" | ||
args: | ||
- "-p" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.atom-build.yml | ||
notes.txt | ||
wip | ||
sv_to_process.lua | ||
luacov.report.out | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ ignore: | |
- LICENSE.md | ||
- __tests | ||
- .luacov | ||
- .scripts | ||
|
||
enable-nolib-creation: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!usr/bin/sh | ||
# This file will copy files located in the toplevel folder of the caller, and paste them in WoW Addon directory. | ||
# Assumes a ".env" located next to this file or at top level which contains a variable "WOW_LOCATION" pointing | ||
# to the WoW install location. It also assumes the toplevel folder is named after the addon. | ||
# | ||
# All files and folders starting with "." or "__" are exluded from the deploy, and only updates are copied. | ||
# Files that no longer exists in the SOURCE are deleted from the DESTINATION. | ||
# | ||
# It uses `robocopy` to do the file/folder filtering, however a `cp` without filtering is commented out. | ||
echo "Executing $0" >&2 | ||
|
||
# Process command-line options | ||
usage() { | ||
echo "Usage: test.sh [-cp]" >&2 | ||
echo " -c Pack to _classic_ WoW edition." >&2 | ||
echo " -p Pack to _ptr_ WoW edition." >&2 | ||
} | ||
|
||
ADDON_LOC="$(pwd)" | ||
ADDON="$(basename $ADDON_LOC)" | ||
WOWEDITION="_retail_" | ||
|
||
# Commandline inputs | ||
while getopts ":cp" opt; do | ||
case $opt in | ||
c) | ||
WOWEDITION="_classic_";; | ||
p) | ||
WOWEDITION="_ptr_";; | ||
/?) | ||
usage ;; | ||
esac | ||
done | ||
|
||
# Check .env | ||
if [ -f ".env" ]; then | ||
. "./.env" | ||
elif [[ -f ".scripts/.env" ]]; then | ||
. ".scripts/.env" | ||
else | ||
echo "<WARNING> Couldn't find \".env\" file. This should contain a WOW_LOCATION variable with the game path.">&2 | ||
fi | ||
|
||
if [ -z "$WOW_LOCATION" ]; then | ||
echo "<ERROR> Expected \$WOW_LOCATION to be set, cannot deploy." >&2 | ||
echo "Exiting..." | ||
exit; | ||
fi | ||
|
||
DEST="$WOW_LOCATION$WOWEDITION/Interface/AddOns/$ADDON" | ||
|
||
# Deploy: | ||
# cp "$ADDON_LOC" "$DEST" -ruv | ||
robocopy "$ADDON_LOC" "$DEST" //s //purge //xo //XD .* __* //XF ?.* __* | ||
|
||
echo "Finished deploying $ADDON" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.