mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 05:14:23 +00:00
Restructuring for new way of installing libreevent
This commit is contained in:
46
package.sh
46
package.sh
@@ -34,7 +34,7 @@ echo "
|
|||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
|
||||||
cd src/webapp/setup
|
cd src/web/webapp/setup
|
||||||
npm i
|
npm i
|
||||||
npm audit fix
|
npm audit fix
|
||||||
|
|
||||||
@@ -68,39 +68,12 @@ echo "
|
|||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd ../../server
|
cd ../../
|
||||||
node prepareDB.js
|
node prepareDB.js
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
echo "
|
rm -rf ./node_modules
|
||||||
|
|
||||||
==> Collecting files to archive <==
|
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
cd ../../
|
|
||||||
|
|
||||||
rm -rf dist/
|
|
||||||
mkdir dist/
|
|
||||||
|
|
||||||
cd dist
|
|
||||||
|
|
||||||
shopt -s extglob
|
|
||||||
cp -r ../src/server/!(node_modules) .
|
|
||||||
|
|
||||||
rm webapp
|
|
||||||
mkdir webapp
|
|
||||||
mkdir webapp/main
|
|
||||||
mkdir webapp/setup
|
|
||||||
|
|
||||||
cp -rv ../src/webapp/main/dist ./webapp/main/dist
|
|
||||||
cp -rv ../src/webapp/setup/dist ./webapp/setup/dist
|
|
||||||
rm .gitignore
|
|
||||||
rm prepareDB.js
|
|
||||||
rm test.js
|
|
||||||
rm config/*.secret.json
|
rm config/*.secret.json
|
||||||
rm backend/plugins/payments/*/*.secret.json
|
rm backend/plugins/payments/*/*.secret.json
|
||||||
echo "agdhgasjlgagaldusaglueagelwadgl" >> setupkey.txt
|
echo "agdhgasjlgagaldusaglueagelwadgl" >> setupkey.txt
|
||||||
@@ -115,7 +88,7 @@ echo "
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
zip -9r libreevent-$v-prebuilt.zip dist
|
zip -9r libreevent-$v-prebuilt.zip web
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
@@ -126,7 +99,7 @@ echo "
|
|||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd src/server
|
cd src/web
|
||||||
npm i
|
npm i
|
||||||
|
|
||||||
npm audit fix
|
npm audit fix
|
||||||
@@ -134,7 +107,7 @@ npm audit fix
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd ../../
|
cd ../../
|
||||||
zip -9r libreevent-$v-npm.zip src/server/node_modules
|
zip -9r libreevent-$v-npm.zip src/web/node_modules
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
@@ -145,13 +118,13 @@ echo "
|
|||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd src/server
|
cd src/web
|
||||||
npm i full-icu
|
npm i full-icu
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
||||||
zip -9r libreevent-$v-full-icu.zip src/server/package.json src/server/package-lock.json
|
zip -9r libreevent-$v-full-icu.zip src/web/package.json src/web/package-lock.json
|
||||||
|
|
||||||
cd src/server
|
cd src/web
|
||||||
npm uninstall full-icu
|
npm uninstall full-icu
|
||||||
|
|
||||||
cd ../../
|
cd ../../
|
||||||
@@ -177,5 +150,6 @@ echo "
|
|||||||
Next steps:
|
Next steps:
|
||||||
- Check that everything was packaged correctly
|
- Check that everything was packaged correctly
|
||||||
- Create a release on GitHub
|
- Create a release on GitHub
|
||||||
|
- Publish to npm
|
||||||
|
|
||||||
"
|
"
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
||||||
let result = '';
|
|
||||||
|
|
||||||
// https://stackoverflow.com/questions/36129721/convert-number-to-alphabet-letter
|
|
||||||
function printToLetter( number ) {
|
|
||||||
let charIndex = number % alphabet.length;
|
|
||||||
let quotient = number / alphabet.length;
|
|
||||||
if ( charIndex - 1 === -1 ) {
|
|
||||||
charIndex = alphabet.length;
|
|
||||||
quotient --;
|
|
||||||
}
|
|
||||||
result = alphabet.charAt( charIndex - 1 ) + result;
|
|
||||||
if ( quotient >= 1 ) {
|
|
||||||
printToLetter( parseInt( quotient ) );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
printToLetter( 150036 );
|
|
||||||
console.log( result );
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../webapp/
|
|
||||||
1
src/server/.gitignore → src/web/.gitignore
vendored
1
src/server/.gitignore → src/web/.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
# ignore node_modules folder for eslint
|
# ignore node_modules folder for eslint
|
||||||
node_modules
|
node_modules
|
||||||
webapp
|
|
||||||
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 698 KiB After Width: | Height: | Size: 698 KiB |
|
Before Width: | Height: | Size: 698 KiB After Width: | Height: | Size: 698 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user