Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/fork-awesome-customizer/commit/3fbac24759fbe2ca347759afe501f4eded1bbf9e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
14 additions and
2 deletions
patcher/apply-filter.js
@ -24,12 +24,17 @@ function cp(src, dest) {
var data = fs . readFileSync ( src , 'utf-8' ) ;
fs . writeFileSync ( dest , data ) ;
return true
}
// let manifest = JSON.parse(fs.readFileSync('templates/.fontcustom-manifest.json', 'utf-8'))
let fcyml = fs . readFileSync ( '../fontcustom.yml' , 'utf-8' )
let desired = fs . readFileSync ( '../wanted.ini' , 'utf-8' ) . split ( '\n' ) . filter ( ( x ) => x . length && x [ 0 ] !== '#' )
let desired = fs . readFileSync ( '../wanted.ini' , 'utf-8' ) . split ( '\n' )
. filter ( ( x ) => x . length && x [ 0 ] !== '#' )
. map ( ( x ) => x . trim ( ) . replace ( /\s*#.*/ , '' ) )
// TODO deal with aliases properly
console . log ( ` Including ${ desired . length } icons ` )
@ -72,7 +77,14 @@ rmInDir('../Fork-Awesome/src/icons/svg')
console . log ( 'Copying desired files to FA~svg/ ...' )
let any _bad = false
for ( let a of desired ) {
cp ( ` ./templates/svg/ ${ a } .svg ` , ` ../Fork-Awesome/src/icons/svg/ ${ a } .svg ` )
if ( ! cp ( ` ./templates/svg/ ${ a } .svg ` , ` ../Fork-Awesome/src/icons/svg/ ${ a } .svg ` ) ) {
console . log ( ` - \x 1b[33mFile \x 1b[31m" ${ a } .svg" \x 1b[33m not found, probably a typo or alias \x 1b[m ` )
any _bad = true
}
}
if ( any _bad ) {
console . log ( ` \x 1b[31mSome files were not found. If you included their aliases (e.g. save -> floppy-o), this is correct. \x 1b[m ` )
}