diff --git a/LICENSE b/LICENSE index fee2a9b..f3a2a99 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017-2018 +Copyright (c) 2017-2026 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dist.sh b/dist.sh index f8942ed..48c66b3 100755 --- a/dist.sh +++ b/dist.sh @@ -6,22 +6,18 @@ TMPDIR=`mktemp -d` # Clean build of angular app cd frontend rm -rf dist -ng build --prod --aot +ng build cd .. cp -ax . $TMPDIR/commitstop # Delete unnecessary files -mv $TMPDIR/commitstop/frontend/dist $TMPDIR/ +mv $TMPDIR/commitstop/frontend/dist/frontend/browser $TMPDIR/ rm -rf $TMPDIR/commitstop/.git $TMPDIR/commitstop/dist.sh $TMPDIR/commitstop/frontend rm `find $TMPDIR -name *.pyc` -mv $TMPDIR/dist $TMPDIR/commitstop/frontend +mv $TMPDIR/browser $TMPDIR/commitstop/frontend # adjust relativ path because path is just "frontend" in distribution instead of "frontend/dist" -export JS_FILE=`ls $TMPDIR/commitstop/frontend/main-es2015.*` -sed "s|\.\./\.\./api.py|../api.py|" < $JS_FILE > $TMPDIR/t.txt -mv $TMPDIR/t.txt $JS_FILE - -export JS_FILE=`ls $TMPDIR/commitstop/frontend/main-es5.*` +export JS_FILE=`ls $TMPDIR/commitstop/frontend/main*.js` sed "s|\.\./\.\./api.py|../api.py|" < $JS_FILE > $TMPDIR/t.txt mv $TMPDIR/t.txt $JS_FILE