Skip to content

Commit

Permalink
can someone remind me I have to git add moved files thx
Browse files Browse the repository at this point in the history
  • Loading branch information
Capuccino committed Sep 27, 2018
1 parent ddfc00a commit ebc230b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
17 changes: 17 additions & 0 deletions travis/inject_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# You find yourself in a strange place. This is where we inject semvering via Git Tags
# No need to change anything below the replacer variable.
# Just change the value of replacer, the script will do everything for you

replacer="0.1.2"

if [ ! -z $TRAVIS_TAG ]; then
echo " ---> Tag exists, using tag."
sed -i "s/define config.version = \"$replacer\"/define config.version = \"$TRAVIS_TAG\"/g" mod/game/options.rpy;
cat mod/game/options.rpy | grep config.version;
else
echo " ---> Tag not exists, using hash."
sed -i "s/config.version = \"$replacer\"/config.version = \"$TRAVIS_COMMIT\"/g" mod/game/options.rpy;
cat mod/game/options.rpy | grep config.version;
fi
46 changes: 46 additions & 0 deletions travis/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

# config for mc
# If you have your own base files, kindly edit this
# However, if you prefer our base files, that's okay too!

mc_endpoint="https://s3-api.us-geo.objectstorage.softlayer.net"
mc_hmac_key="aa1d6f56b97443c185d7282c22adc4a7"
mc_hmac_secret="29fc312082d26720ceeec6e89630f6d2fc382a96c7a72b1c"
mc_alias="ibm"
mc_bucket="filepub"
mc_filename="ddlc_pkg.zip"

# DO NOT EDIT BELOW THIS LINE
# This is intended for automating unzipping and putting the RPAs into the respect folder
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Installing Minio S3 Client"

wget "https://dl.minio.io/client/mc/release/linux-amd64/mc" && \

chmod +x mc && \

sudo cp -vR mc /usr/bin/mc && \

mc config host add $mc_alias $mc_endpoint $mc_hmac_key $mc_hmac_secret && \

# try if it works

mc ls $mc_alias;

echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Checking for dir if it exists"

if [ -d "./mod" ]; then
# dir exists, just unzip, and make new dir to add files
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Directory exists. Creating game/ subdir and copying files over."
mc cp "$mc_alias/$mc_bucket/$mc_filename" ./
mkdir -p "./mod/game"
unzip $mc_filename -d mod/game
exit 0
else
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Directory does not exist. Creating dir and copying files over"
mkdir -p mod
mc cp "$mc_alias/$mc_bucket/$mc_filename" ./
mkdir -p "./mod/game"
unzip $mc_filename -d mod/game
exit 0
fi

0 comments on commit ebc230b

Please sign in to comment.