diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml
index 9f91a262..3e7a6115 100644
--- a/.github/workflows/frontend-build.yml
+++ b/.github/workflows/frontend-build.yml
@@ -33,7 +33,7 @@ jobs:
- name: 'Setup node'
uses: actions/setup-node@v4
with:
- node-version: 16.17.0
+ node-version: 22.4.0
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: 'Install NPM Dependencies'
diff --git a/.gitignore b/.gitignore
index c65f02cf..5e50783c 100755
--- a/.gitignore
+++ b/.gitignore
@@ -646,6 +646,7 @@ frontend/static/frontend/**
docs/.jekyll-cache*
docs/_site*
node
+desktopApp/release-builds
# frontend statics
frontend/templates/frontend/*.html
diff --git a/frontend/templates/frontend/index.ejs b/frontend/templates/frontend/index.ejs
index 0536e8d4..70468337 100644
--- a/frontend/templates/frontend/index.ejs
+++ b/frontend/templates/frontend/index.ejs
@@ -21,7 +21,7 @@
<% } %>
- {% load static %}
+
diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts
index 3bcdd33d..538245c0 100644
--- a/frontend/webpack.config.ts
+++ b/frontend/webpack.config.ts
@@ -73,6 +73,14 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'selfhosted-pro',
}),
+ new CopyPlugin({
+ patterns: [
+ {
+ from: path.resolve(__dirname, 'static'),
+ to: path.resolve(__dirname, '../nodeapp/static'),
+ },
+ ],
+ }),
// Desktop App HTML
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
@@ -83,6 +91,14 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'desktop-basic',
}),
+ new CopyPlugin({
+ patterns: [
+ {
+ from: path.resolve(__dirname, 'static'),
+ to: path.resolve(__dirname, '../desktopApp/static'),
+ },
+ ],
+ }),
// Web App HTML
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
@@ -102,15 +118,6 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'web-pro',
}),
- // Static files
- new CopyPlugin({
- patterns: [
- {
- from: path.resolve(__dirname, 'static'),
- to: path.resolve(__dirname, '../nodeapp/static'),
- },
- ],
- }),
new CopyPlugin({
patterns: [
{
@@ -119,14 +126,6 @@ const configNode: Configuration = {
},
],
}),
- new CopyPlugin({
- patterns: [
- {
- from: path.resolve(__dirname, 'static'),
- to: path.resolve(__dirname, '../desktopApp/static'),
- },
- ],
- }),
],
};