Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distro zip file from tar file #449 #543

Merged
merged 2 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis/deploy_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [ "$TRAVIS" = "true" ]; then

FILE_NAME="phpvms-$PKG_NAME"
TAR_NAME="$FILE_NAME.tar.gz"
ZIP_NAME="$FILE_NAME.zip"

echo "Cleaning files"

Expand Down Expand Up @@ -109,6 +110,15 @@ if [ "$TRAVIS" = "true" ]; then
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
sha256sum $TAR_NAME >"$TAR_NAME.sha256"

# Create zip https://stackoverflow.com/a/6301947
for f in *.tar.gz;\
do rm -rf ${f%.tar.gz} ;\
mkdir ${f%.tar.gz} ;\
tar -C ${f%.tar.gz} zxvf $f ;\
zip -r ${f%.tar.gz} $f.zip ;\
rm -rf ${f%.tar.gz} ;\
done

echo "Uploading to S3"
mkdir -p $TRAVIS_BUILD_DIR/build
cd $TRAVIS_BUILD_DIR/build
Expand Down
13 changes: 13 additions & 0 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use App\Listeners\FinanceEventHandler;
use App\Listeners\UserStateListener;
use App\Notifications\EventHandler;
use Codedge\Updater\Events\UpdateAvailable;
use Codedge\Updater\Events\UpdateSucceeded;
use Codedge\Updater\Listeners\SendUpdateAvailableNotification;
use Codedge\Updater\Listeners\SendUpdateSucceededNotification;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
Expand All @@ -33,6 +37,15 @@ class EventServiceProvider extends ServiceProvider
UserStatsChanged::class => [
AwardListener::class,
],

UpdateAvailable::class => [
SendUpdateAvailableNotification::class,
],

UpdateSucceeded::class => [
SendUpdateSucceededNotification::class,
],

];

protected $subscribe = [
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"symfony/polyfill-iconv": "~1.12",
"theiconic/php-ga-measurement-protocol": "2.7.*",
"tivie/php-os-detector": "~1.1.0",
"webpatser/laravel-uuid": "~3.0"
"webpatser/laravel-uuid": "~3.0",
"codedge/laravel-selfupdater": "^2.5"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.0",
Expand Down
Loading