Skip to content

Commit

Permalink
fix(Checksum): Fix calculation of checksum, forgot to add some files …
Browse files Browse the repository at this point in the history
…it should ignore, so it generated a faulty hash
  • Loading branch information
itssimple committed Feb 21, 2022
1 parent 68c66aa commit cf05b24
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions libraries/plugin-checksum.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined( 'EDUADMIN_PLUGIN_PATH' ) || define( 'EDUADMIN_PLUGIN_PATH', dirname( __FILE__, 2 ) );
define( 'EDU_IGNORED_FILES_AND_DIRECTORIES', array(
const EDU_IGNORED_FILES_AND_DIRECTORIES = array(
'.',
'..',
'.git',
Expand All @@ -13,6 +13,7 @@
'.nvmrc',
'.scrutinizer.yml',
'.vscode',
'.versionrc',
'CHANGELOG.md',
'CONTRIBUTING.md',
'Gulpfile.js',
Expand All @@ -35,11 +36,12 @@
'tests',
'tsconfig.json',
'vendor',
'new_website',
'website',
'wp-tests',
'yarn-error.log',
'yarn.lock',
) );
);

class EduAdminPluginIntegrityChecker {
public static function check_plugin_integrity() {
Expand Down
8 changes: 7 additions & 1 deletion scripts/deploy_gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,20 @@ rm -f $PROJECT_ROOT/CONTRIBUTING.md
rm -f $PROJECT_ROOT/LICENSE.md
rm -f $PROJECT_ROOT/phpunit.xml
rm -f $PROJECT_ROOT/.gitignore
rm -f $PROJECT_ROOT/.gitmodules
rm -f $PROJECT_ROOT/.gitattributes
rm -f $PROJECT_ROOT/.nvmrc
rm -f $PROJECT_ROOT/Gulpfile.js
rm -f $PROJECT_ROOT/yarn.lock
rm -f $PROJECT_ROOT/package.json
rm -f $PROJECT_ROOT/readme.md
rm -f $PROJECT_ROOT/.versionrc
rm -f $PROJECT_ROOT/.editorconfig
rm -fR $PROJECT_ROOT/.github
rm -fR $PROJECT_ROOT/scripts
rm -fR $PROJECT_ROOT/tests
rm -fR $PROJECT_ROOT/.git
rm -fR $PROJECT_ROOT/.idea
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/.git
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/.gitignore
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/composer.yml
Expand All @@ -59,7 +66,6 @@ rm -fR $PROJECT_ROOT/bin
rm -fR $PROJECT_ROOT/node_modules
rm -fR $PROJECT_ROOT/src
rm -fR $PROJECT_ROOT/docs
rm -fR $PROJECT_ROOT/website
rm -fR $PROJECT_ROOT/new_website

# Make sure we are in the project root
Expand Down
5 changes: 4 additions & 1 deletion scripts/trunk_gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ rm -f $PROJECT_ROOT/CONTRIBUTING.md
rm -f $PROJECT_ROOT/LICENSE.md
rm -f $PROJECT_ROOT/phpunit.xml
rm -f $PROJECT_ROOT/.gitignore
rm -f $PROJECT_ROOT/.gitmodules
rm -f $PROJECT_ROOT/.gitattributes
rm -f $PROJECT_ROOT/.nvmrc
rm -f $PROJECT_ROOT/Gulpfile.js
rm -f $PROJECT_ROOT/yarn.lock
rm -f $PROJECT_ROOT/package.json
Expand All @@ -41,6 +44,7 @@ rm -fR $PROJECT_ROOT/.github
rm -fR $PROJECT_ROOT/scripts
rm -fR $PROJECT_ROOT/tests
rm -fR $PROJECT_ROOT/.git
rm -fR $PROJECT_ROOT/.idea
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/.git
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/.gitignore
rm -fR $PROJECT_ROOT/eduadmin-api-phpclient/composer.yml
Expand All @@ -52,7 +56,6 @@ rm -fR $PROJECT_ROOT/bin
rm -fR $PROJECT_ROOT/node_modules
rm -fR $PROJECT_ROOT/src
rm -fR $PROJECT_ROOT/docs
rm -fR $PROJECT_ROOT/website
rm -fR $PROJECT_ROOT/new_website

# Make sure we are in the project root
Expand Down

0 comments on commit cf05b24

Please sign in to comment.