This repository has been archived on 2022-10-04. You can view files and clone it, but cannot push or open issues or pull requests.
2020-02-29 22:48:09 +00:00
|
|
|
import {join} from 'path';
|
|
|
|
import tar from 'tar';
|
|
|
|
|
|
|
|
async function entry(): Promise<void> {
|
|
|
|
await tar.extract({
|
|
|
|
file: join(__dirname, '../pages/assets/fonts/Inter.tar'),
|
|
|
|
cwd: join(__dirname, '../../public/fonts/')
|
|
|
|
});
|
|
|
|
await tar.extract({
|
|
|
|
file: join(__dirname, '../pages/assets/fonts/Hasklig.tar'),
|
|
|
|
cwd: join(__dirname, '../../public/fonts/')
|
|
|
|
});
|
|
|
|
await tar.extract({
|
|
|
|
file: join(__dirname, '../pages/assets/favicons.tar'),
|
|
|
|
cwd: join(__dirname, '../../public/')
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (require.main === module) {
|
2020-06-29 22:26:01 +00:00
|
|
|
void entry();
|
2020-02-29 22:48:09 +00:00
|
|
|
}
|