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")