Skip to content

Commit 9026caf

Browse files
committed
file size is computed automatically
1 parent a6c5e12 commit 9026caf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

package/src/linux/installer.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ async function createNfpmConfig(
4141
"share",
4242
);
4343

44-
// Calculate installed size
45-
const fileSizes = [];
46-
for await (const entry of walk(configuration.directoryInfo.pkgWorking.root)) {
47-
if (entry.isFile) {
48-
fileSizes.push((await Deno.stat(entry.path)).size);
49-
}
50-
}
51-
const size = fileSizes.reduce((accum, target) => accum + target, 0);
52-
5344
const config: any = {
5445
name: configuration.productName.toLowerCase(),
5546
version: configuration.version,

0 commit comments

Comments
 (0)