Skip to content

Commit c3097e9

Browse files
committed
chore: dev install
1 parent 68c68a8 commit c3097e9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Tools/DevInstall.nu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use ./Package.nu package-plugin
2+
3+
def main [--ue-install-dir: string] {
4+
package-plugin --ue-install-dir $ue_install_dir
5+
}

Tools/Package.nu

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def ue-tool-extension [] {
2929
}
3030
}
3131

32-
def main [--ue-install-dir: string] {
32+
def package-plugin [--ue-install-dir: string] {
3333
let install_dirs = if $ue_install_dir != null { [$ue_install_dir] } else { get-ue-install-dirs };
3434
let plugin_dir = $env.FILE_PWD | path join '..' | path expand;
3535
let dist_dir = [$plugin_dir, 'Dist'] | path join;
@@ -53,11 +53,18 @@ def main [--ue-install-dir: string] {
5353
print $"using ($install_dir)";
5454

5555
let engine_dir = [$install_dir, 'Engine'] | path join;
56-
57-
5856
let uat = [$engine_dir, 'Build', 'BatchFiles', $"RunUAT.(ue-tool-extension)"] | path join;
5957
^$uat BuildPlugin $"-Plugin=($plugin_descriptor)" $"-Package=($temp_package_dir)";
6058

6159
tar -a -cf $dist_archive -C $temp_package_dir '*';
6260
rm -rf $temp_package_dir;
61+
62+
return {
63+
ue_install: $install_dir,
64+
plugin_archive: $dist_archive,
65+
};
66+
}
67+
68+
def main [--ue-install-dir: string] {
69+
package-plugin --ue-install-dir $ue_install_dir
6370
}

0 commit comments

Comments
 (0)