Skip to content

Commit

Permalink
- (bluefox) Trying to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Sep 21, 2024
1 parent 73ad554 commit 53a266d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Detect IP addresses from:
-->

## Changelog
### **WORK IN PROGRESS**
- (bluefox) Trying to fix CI

### 1.0.7 (2024-09-21)
- (bluefox) Corrected the error if MAC address cannot be determined

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@alcalzone/release-script": "^3.8.0",
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@iobroker/build-tools": "^1.0.4",
"@iobroker/build-tools": "^1.0.5",
"@iobroker/eslint-config": "^0.1.6",
"@iobroker/types": "^6.0.11",
"@iobroker/legacy-testing": "^1.0.13",
Expand Down
8 changes: 4 additions & 4 deletions tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function clean() {

function copyAllFiles() {
if (!existsSync('./src-admin/build/customComponents.js')) {
console.error('Invalid build: index.html not found!');
console.error(`[${new Date().toISOString()}] Invalid build: customComponents.js not found!`);
process.exit(2);
}
copyFiles(['src-admin/build/static/js/*.js', '!src-admin/build/static/js/vendors*.js'], 'admin/custom/static/js');
Expand All @@ -30,13 +30,13 @@ if (process.argv.includes('--0-clean')) {
} else if (process.argv.includes('--1-npm')) {
if (!existsSync(`${__dirname}/src-admin/node_modules`)) {
npmInstall(srcAdmin).catch(e => {
console.error(`Cannot install admin dependencies: ${e}`);
console.error(`[${new Date().toISOString()}] Cannot install admin dependencies: ${e}`);
process.exit(1);
});
}
} else if (process.argv.includes('--2-compile')) {
buildReact(srcAdmin, { rootDir: __dirname, craco: true }).catch(e => {
console.error(`Cannot install admin dependencies: ${e}`);
console.error(`[${new Date().toISOString()}] Cannot build: ${e}`);
process.exit(1);
});
} else if (process.argv.includes('--3-copy')) {
Expand All @@ -47,7 +47,7 @@ if (process.argv.includes('--0-clean')) {
.then(() => buildReact(srcAdmin, { rootDir: __dirname, craco: true }))
.then(() => copyAllFiles())
.catch(e => {
console.error(`Cannot install admin dependencies: ${e}`);
console.error(`[${new Date().toISOString()}] Cannot build all: ${e}`);
process.exit(1);
});
}

0 comments on commit 53a266d

Please sign in to comment.