Skip to content

Commit a387dd1

Browse files
author
Rodrigo Gomez Palacio
authored
Merge pull request #335 from OneSignal/3.0.1
3.0.1
2 parents 8e9423a + 3dde625 commit a387dd1

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

build_release.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
WORDPRESS_GIT_SRC_PATH="."
2+
DESTINATION_PATH="../onesignal-free-web-push-notifications/trunk/"
3+
RELEASE_ARCHIVE_FILENAME="onesignal-free-web-push-notifications.zip"
4+
5+
# Prevent accidental rm -rf issues if running as root
6+
if (( EUID == 0 )); then
7+
echo "Please do not run this script as root for removing directory safety reasons."
8+
exit 1
9+
fi
10+
11+
# Using exclude .* excludes dot files and dot directories like .git, .vscode
12+
if [[ $DESTINATION_PATH != *onesignal-free-web-push-notifications/trunk/ ]]; then
13+
echo "Script was going to remove ${DESTINATION_PATH}, but quitting because destination path unexpectedly does not end in ...onesignal-free-web-push-notifications/trunk/. Exiting to prevent removing unexpected directory."
14+
exit 1
15+
fi
16+
17+
echo "Building Release Version of OneSignal WordPress Plugin"
18+
echo "──────────────────────────────────────────────────────"
19+
20+
echo "Removing destination folder '${DESTINATION_PATH}'."
21+
rm -rf $DESTINATION_PATH
22+
23+
echo "Creating new empty destination folder '${DESTINATION_PATH}'."
24+
mkdir -p $DESTINATION_PATH
25+
26+
# The --delete option remove files from destination that are not present in source
27+
exclude_options=(
28+
"--exclude=.git/"
29+
"--exclude=.env"
30+
"--exclude=.gitignore"
31+
"--exclude=.github"
32+
"--exclude=.vscode/"
33+
"--exclude=build_release.sh"
34+
"--exclude=*.zip"
35+
"--exclude=onesignal-free-web-push-notifications"
36+
"--exclude=onesignal-free-web-push-notifications.zip"
37+
"--exclude=CONTRIBUTING.md"
38+
"--exclude=LICENSE"
39+
"--exclude=docker*"
40+
"--exclude=PluginDevDockerUsage.md"
41+
"--exclude=README.md"
42+
"--exclude=index.php"
43+
"--exclude=views/css/*.scss"
44+
"--exclude=views/css/callout.css"
45+
"--exclude=views/css/link.css"
46+
"--exclude=views/css/link.css"
47+
"--exclude=views/css/semantic-ui"
48+
)
49+
rsync --archive --delete "${exclude_options[@]}" $WORDPRESS_GIT_SRC_PATH/ $DESTINATION_PATH
50+
51+
# Add new unversioned directories to SVN
52+
svn status $DESTINATION_PATH | grep "^\?" | awk '{print $2}' | xargs -I {} svn add {}
53+
54+
echo "Creating archive of release contents as '${RELEASE_ARCHIVE_FILENAME}' in source directory '${WORDPRESS_GIT_SRC_PATH}'."
55+
cd $WORDPRESS_GIT_SRC_PATH
56+
zip -qr -x ".*" -x="build_release.sh" -x="*.zip" -x="onesignal-free-web-push-notifications" ${RELEASE_ARCHIVE_FILENAME} ./*
57+
cd -

onesignal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Plugin Name: OneSignal Push Notifications
77
* Plugin URI: https://onesignal.com/
88
* Description: Free web push notifications.
9-
* Version: 3.0.0
9+
* Version: 3.0.1
1010
* Author: OneSignal
1111
* Author URI: https://onesignal.com
1212
* License: MIT

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://onesignal.com
44
Tags: push notification, push notifications, desktop notifications, mobile notifications, chrome push, android, android notification, android notifications, android push, desktop notification, firefox, firefox push, mobile, mobile notification, notification, notifications, notify, onesignal, push, push messages, safari, safari push, web push, chrome
55
Requires at least: 3.8
66
Tested up to: 6.7
7-
Stable tag: 3.0.0
7+
Stable tag: 3.0.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -64,7 +64,7 @@ OneSignal is trusted by over 1.8M+ developers and marketing strategists. We powe
6464

6565
== Changelog ==
6666

67-
= 3.0.0 =
67+
= 3.0.1 =
6868
WARNING: this update contains changes that may break specific setups, as detailed below:
6969

7070
If you have made any code modifications to your Wordpress installation to directly interact with the OneSignal SDK, this version will break your implementation. Please revert your code modifications prior to upgrading and use our improved dashboard functionality to configure your OneSignal integration instead.

0 commit comments

Comments
 (0)