diff --git a/extra/tools/deploy/linux/authors.txt b/extra/tools/deploy/linux/authors.txt new file mode 100644 index 0000000000..4b7af4aac0 --- /dev/null +++ b/extra/tools/deploy/linux/authors.txt @@ -0,0 +1 @@ +James Cash diff --git a/extra/tools/deploy/linux/linux.factor b/extra/tools/deploy/linux/linux.factor new file mode 100644 index 0000000000..fdbb67ef15 --- /dev/null +++ b/extra/tools/deploy/linux/linux.factor @@ -0,0 +1,31 @@ +USING: io io.files io.backend kernel namespaces sequences +system tools.deploy.backend tools.deploy.config assocs +hashtables prettyprint ; +IN: tools.deploy.linux + +: copy-vm ( executable bundle-name -- vm ) + prepend-path "" append + vm over copy-file ; + +: copy-fonts ( name -- ) + "fonts/" resource-path swap copy-tree-into ; + +: create-app-dir ( vocab bundle-name -- vm ) + dup copy-fonts + copy-vm ; + +: image-name ( vocab bundle-name -- str ) + prepend-path ".image" append ; + +: bundle-name ( -- str ) + deploy-name get ; + +M: linux deploy* ( vocab -- ) + "." resource-path [ + dup deploy-config [ + [ bundle-name create-app-dir ] keep + [ bundle-name image-name ] keep + namespace make-deploy-image + bundle-name normalize-path [ "Binary deployed to " % % "." % ] "" make write + ] bind + ] with-directory ; \ No newline at end of file diff --git a/extra/tools/deploy/linux/summary.txt b/extra/tools/deploy/linux/summary.txt new file mode 100644 index 0000000000..4e2e8fbac4 --- /dev/null +++ b/extra/tools/deploy/linux/summary.txt @@ -0,0 +1 @@ +Deploying minimal stand-alone Linux binaries diff --git a/extra/tools/deploy/linux/tags.txt b/extra/tools/deploy/linux/tags.txt new file mode 100644 index 0000000000..ef1aab0d0e --- /dev/null +++ b/extra/tools/deploy/linux/tags.txt @@ -0,0 +1 @@ +tools