Don't ignore lockfiles on linux/windows builds (#3859)
This commit is contained in:
@@ -209,8 +209,6 @@ jobs:
|
|||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: |
|
run: |
|
||||||
cd ui/desktop
|
cd ui/desktop
|
||||||
# Clear npm cache and remove lock file as suggested by the error
|
|
||||||
rm -rf node_modules package-lock.json || true
|
|
||||||
npm cache clean --force || true
|
npm cache clean --force || true
|
||||||
npm install
|
npm install
|
||||||
# Verify installation
|
# Verify installation
|
||||||
|
|||||||
@@ -276,17 +276,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ui/desktop
|
cd ui/desktop
|
||||||
|
|
||||||
# Fix for rollup native module issue (npm optional dependencies bug)
|
|
||||||
echo "🔧 Fixing npm optional dependencies issue..."
|
|
||||||
rm -rf node_modules package-lock.json
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
# Verify rollup native module is installed
|
|
||||||
if [ ! -d "node_modules/@rollup/rollup-linux-x64-gnu" ]; then
|
|
||||||
echo "⚠️ Rollup native module missing, installing manually..."
|
|
||||||
npm install @rollup/rollup-linux-x64-gnu --save-optional
|
|
||||||
fi
|
|
||||||
|
|
||||||
npm run bundle:windows
|
npm run bundle:windows
|
||||||
|
|
||||||
# 7) Copy exe/dll to final out folder and prepare flat distribution
|
# 7) Copy exe/dll to final out folder and prepare flat distribution
|
||||||
|
|||||||
Reference in New Issue
Block a user