6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
22 lines
360 B
JavaScript
22 lines
360 B
JavaScript
const fs = require('fs')
|
|
const paths = ['C:/libjpeg-turbo']
|
|
|
|
if (process.arch === 'x64') {
|
|
paths.unshift('C:/libjpeg-turbo64')
|
|
}
|
|
|
|
paths.forEach(function (path) {
|
|
if (exists(path)) {
|
|
process.stdout.write(path)
|
|
process.exit()
|
|
}
|
|
})
|
|
|
|
function exists (path) {
|
|
try {
|
|
return fs.lstatSync(path).isDirectory()
|
|
} catch (e) {
|
|
return false
|
|
}
|
|
}
|