From bd9ea7a909136088e561a69db62d37307cebe284 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 3 Oct 2023 16:37:42 +0200 Subject: [PATCH] chore(file_icons): Move font from fonts/ to assets/ Signed-off-by: jld3103 --- packages/file_icons/{fonts => assets}/seti.ttf | Bin packages/file_icons/bin/file_icons.dart | 8 ++++---- packages/file_icons/pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename packages/file_icons/{fonts => assets}/seti.ttf (100%) diff --git a/packages/file_icons/fonts/seti.ttf b/packages/file_icons/assets/seti.ttf similarity index 100% rename from packages/file_icons/fonts/seti.ttf rename to packages/file_icons/assets/seti.ttf diff --git a/packages/file_icons/bin/file_icons.dart b/packages/file_icons/bin/file_icons.dart index cea7b274..e9924d37 100644 --- a/packages/file_icons/bin/file_icons.dart +++ b/packages/file_icons/bin/file_icons.dart @@ -17,9 +17,9 @@ void main() { } void copyFont() { - final fontsDir = Directory('fonts'); - if (!fontsDir.existsSync()) { - fontsDir.createSync(); + final assetsDir = Directory('assets'); + if (!assetsDir.existsSync()) { + assetsDir.createSync(); } File( p.join( @@ -29,7 +29,7 @@ void copyFont() { 'seti', 'seti.ttf', ), - ).copySync(p.join('fonts', 'seti.ttf')); + ).copySync(p.join(assetsDir.path, 'seti.ttf')); } void generateData() { diff --git a/packages/file_icons/pubspec.yaml b/packages/file_icons/pubspec.yaml index ff513503..5ded88cc 100644 --- a/packages/file_icons/pubspec.yaml +++ b/packages/file_icons/pubspec.yaml @@ -20,4 +20,4 @@ flutter: fonts: - family: Seti fonts: - - asset: fonts/seti.ttf + - asset: assets/seti.ttf