diff --git a/util/scripts/benchmark.js b/scripts/benchmark.js
index e7435191..e7435191 100644
--- a/util/scripts/benchmark.js
+++ b/scripts/benchmark.js
diff --git a/bundle/scripts/benchmark/connections.js b/scripts/benchmark/connections.js
index 661548c3..661548c3 100644
--- a/bundle/scripts/benchmark/connections.js
+++ b/scripts/benchmark/connections.js
diff --git a/bundle/scripts/benchmark/index.js b/scripts/benchmark/index.js
index 37ac5633..37ac5633 100644
--- a/bundle/scripts/benchmark/index.js
+++ b/scripts/benchmark/index.js
diff --git a/bundle/scripts/benchmark/users.js b/scripts/benchmark/users.js
index bce67bf4..bce67bf4 100644
--- a/bundle/scripts/benchmark/users.js
+++ b/scripts/benchmark/users.js
diff --git a/bundle/scripts/build.js b/scripts/build.js
index f53a2223..49353c87 100644
--- a/bundle/scripts/build.js
+++ b/scripts/build.js
@@ -1,9 +1,8 @@
const { execSync } = require("child_process");
const path = require("path");
const fs = require("fs");
-const { getSystemErrorMap } = require("util");
const { argv, stdout, exit } = require("process");
-const { copyRecursiveSync, execIn, parts } = require('./utils');
+const { execIn, parts } = require('./utils');
if(argv.includes("help")) {
console.log(`Fosscord build script help:
@@ -44,14 +43,6 @@ console.log(`[${++i}/${steps}] Checking if dependencies were installed correctly
if(!fs.existsSync(path.join(__dirname, "..", "node_modules", "exif-be-gone", "index.js")))
execIn("npm run build", path.join(__dirname, "..", "node_modules", "exif-be-gone"));
-console.log(`[${++i}/${steps}] Copying src files...`);
-copyRecursiveSync(path.join(__dirname, "..", "..", "api", "assets"), path.join(__dirname, "..", "dist", "api", "assets"));
-copyRecursiveSync(path.join(__dirname, "..", "..", "api", "client_test"), path.join(__dirname, "..", "dist", "api", "client_test"));
-copyRecursiveSync(path.join(__dirname, "..", "..", "api", "locales"), path.join(__dirname, "..", "dist", "api", "locales"));
-parts.forEach((a) => {
- copyRecursiveSync("../" + a + "/src", "dist/" + a + "/src");
- if (verbose) console.log(`Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!`);
-});
if (!argv.includes("copyonly")) {
console.log(`[${++i}/${steps}] Compiling src files ...`);
diff --git a/bundle/scripts/db_migrations.sh b/scripts/db_migrations.sh
index 83f15a2b..83f15a2b 100755
--- a/bundle/scripts/db_migrations.sh
+++ b/scripts/db_migrations.sh
diff --git a/bundle/scripts/depcheck.js b/scripts/depcheck.js
index 1957f794..1957f794 100644
--- a/bundle/scripts/depcheck.js
+++ b/scripts/depcheck.js
diff --git a/bundle/scripts/depclean.js b/scripts/depclean.js
index 830081b9..830081b9 100644
--- a/bundle/scripts/depclean.js
+++ b/scripts/depclean.js
diff --git a/api/scripts/droptables.sql b/scripts/droptables.sql
index 8a852048..8a852048 100644
--- a/api/scripts/droptables.sql
+++ b/scripts/droptables.sql
diff --git a/bundle/scripts/gen_index.js b/scripts/gen_index.js
index 71c64a9f..71c64a9f 100644
--- a/bundle/scripts/gen_index.js
+++ b/scripts/gen_index.js
diff --git a/api/scripts/generate_openapi.js b/scripts/generate_openapi.js
index 9624a5b9..9624a5b9 100644
--- a/api/scripts/generate_openapi.js
+++ b/scripts/generate_openapi.js
diff --git a/api/scripts/generate_schema.js b/scripts/generate_schema.js
index 1badfd32..6925df5d 100644
--- a/api/scripts/generate_schema.js
+++ b/scripts/generate_schema.js
@@ -49,7 +49,7 @@ function modify(obj) {
function main() {
const files = [
- ...walk(path.join(__dirname, "..", "..", "util", "src", "schemas")),
+ ...walk(path.join(__dirname, "..", "src", "util", "schemas")),
];
const program = TJS.getProgramFromFiles(
files,
diff --git a/bundle/scripts/install.js b/scripts/install.js
index db9dadbc..db9dadbc 100644
--- a/bundle/scripts/install.js
+++ b/scripts/install.js
diff --git a/util/scripts/migrate_db_engine.js b/scripts/migrate_db_engine.js
index 79e9d86f..79e9d86f 100644
--- a/util/scripts/migrate_db_engine.js
+++ b/scripts/migrate_db_engine.js
diff --git a/bundle/scripts/rights.js b/scripts/rights.js
index c363b0c5..c363b0c5 100644
--- a/bundle/scripts/rights.js
+++ b/scripts/rights.js
diff --git a/api/scripts/stresstest/.gitignore b/scripts/stresstest/.gitignore
index bde26fd4..bde26fd4 100644
--- a/api/scripts/stresstest/.gitignore
+++ b/scripts/stresstest/.gitignore
diff --git a/api/scripts/stresstest/accounts.json.example b/scripts/stresstest/accounts.json.example
index 61904c5e..61904c5e 100644
--- a/api/scripts/stresstest/accounts.json.example
+++ b/scripts/stresstest/accounts.json.example
diff --git a/api/scripts/stresstest/config.json.example b/scripts/stresstest/config.json.example
index 73f52f05..73f52f05 100644
--- a/api/scripts/stresstest/config.json.example
+++ b/scripts/stresstest/config.json.example
diff --git a/api/scripts/stresstest/index.js b/scripts/stresstest/index.js
index 740a9011..740a9011 100644
--- a/api/scripts/stresstest/index.js
+++ b/scripts/stresstest/index.js
diff --git a/api/scripts/stresstest/package-lock.json b/scripts/stresstest/package-lock.json
index 81c9b817..81c9b817 100644
--- a/api/scripts/stresstest/package-lock.json
+++ b/scripts/stresstest/package-lock.json
diff --git a/api/scripts/stresstest/package.json b/scripts/stresstest/package.json
index 8d94d05b..8d94d05b 100644
--- a/api/scripts/stresstest/package.json
+++ b/scripts/stresstest/package.json
diff --git a/api/scripts/stresstest/src/login/index.js b/scripts/stresstest/src/login/index.js
index ab6c9719..b153550e 100644
--- a/api/scripts/stresstest/src/login/index.js
+++ b/scripts/stresstest/src/login/index.js
@@ -1,6 +1,6 @@
const fetch = require("node-fetch");
const fs = require("fs");
-let config = require("./../../config.json");
+let config = require("../../config.json");
module.exports = login;
async function login(account) {
let body = {
diff --git a/api/scripts/stresstest/src/message/send.js b/scripts/stresstest/src/message/send.js
index d1b86914..d1b86914 100644
--- a/api/scripts/stresstest/src/message/send.js
+++ b/scripts/stresstest/src/message/send.js
diff --git a/api/scripts/stresstest/src/register/index.js b/scripts/stresstest/src/register/index.js
index 578b9022..578b9022 100644
--- a/api/scripts/stresstest/src/register/index.js
+++ b/scripts/stresstest/src/register/index.js
diff --git a/bundle/scripts/update_schemas.js b/scripts/update_schemas.js
index a018120b..a018120b 100644
--- a/bundle/scripts/update_schemas.js
+++ b/scripts/update_schemas.js
diff --git a/bundle/scripts/utils.js b/scripts/utils.js
index f4b1ad7f..f4b1ad7f 100644
--- a/bundle/scripts/utils.js
+++ b/scripts/utils.js
|