From 1bf5eb5bb81011ca8a8dfe1cb3838945ceb07ec5 Mon Sep 17 00:00:00 2001 From: GD Date: Fri, 12 Mar 2021 12:02:58 +0100 Subject: [PATCH] clean standalone src dir before zipping to reduce the release size --- build/build_windows_standalone.R | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/build_windows_standalone.R b/build/build_windows_standalone.R index 5a9fdccc..b6c58c33 100644 --- a/build/build_windows_standalone.R +++ b/build/build_windows_standalone.R @@ -35,14 +35,6 @@ fs::file_copy( overwrite = TRUE ) -# clean standalone source dir -fs::file_delete( - list.files( - file.path(win_dir, "src"), pattern = "diyabcGUI_", - full.names = TRUE - ) -) - # diyabcGUI windows source win_zip <- paste0("diyabcGUI_", pkg_version, ".zip") fs::file_copy( @@ -59,6 +51,14 @@ setwd(cwd) Sys.sleep(2) +# clean standalone source dir before zipping +fs::file_delete( + list.files( + file.path(win_dir, "src"), pattern = "diyabcGUI_", + full.names = TRUE + ) +) + # standalone name app_version <- as.character(packageVersion( "diyabcGUI", lib.loc = file.path(win_dir, "app", "library")