mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-05 10:24:13 +00:00
Desktop app fix 2
This commit is contained in:
2
.github/workflows/frontend-build.yml
vendored
2
.github/workflows/frontend-build.yml
vendored
@ -65,7 +65,7 @@ jobs:
|
||||
path: |
|
||||
desktopApp/static
|
||||
desktopApp/*.html
|
||||
- name: 'Archive Django Static Build Results'
|
||||
- name: 'Archive Web Static Build Results'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-main-static
|
||||
|
1048
frontend/package-lock.json
generated
1048
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -91,14 +91,7 @@ const configNode = (env: any, argv: { mode: string }): Configuration => {
|
||||
robosatsSettings: 'selfhosted-pro',
|
||||
basePath: '/',
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: path.resolve(__dirname, 'static'),
|
||||
to: path.resolve(__dirname, '../nodeapp/static'),
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
// Desktop App
|
||||
new HtmlWebpackPlugin({
|
||||
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
|
||||
@ -111,14 +104,7 @@ const configNode = (env: any, argv: { mode: string }): Configuration => {
|
||||
robosatsSettings: 'desktop-basic',
|
||||
basePath: '/',
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: path.resolve(__dirname, 'static'),
|
||||
to: path.resolve(__dirname, '../desktopApp/static'),
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
// Web App
|
||||
new HtmlWebpackPlugin({
|
||||
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
|
||||
@ -142,11 +128,23 @@ const configNode = (env: any, argv: { mode: string }): Configuration => {
|
||||
robosatsSettings: 'web-pro',
|
||||
basePath: '/',
|
||||
}),
|
||||
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
// Copy to nodeapp
|
||||
{
|
||||
from: path.resolve(__dirname, 'static'),
|
||||
to: path.resolve(__dirname, '../web/static'),
|
||||
to: path.resolve(__dirname, '../../../nodeapp/static'),
|
||||
},
|
||||
// Copy to desktopApp
|
||||
{
|
||||
from: path.resolve(__dirname, 'static'),
|
||||
to: path.resolve(__dirname, '../../../desktopApp/static'),
|
||||
},
|
||||
// Copy to web
|
||||
{
|
||||
from: path.resolve(__dirname, 'static'),
|
||||
to: path.resolve(__dirname, '../../../web/static'),
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
Reference in New Issue
Block a user