add standard files
authorAJ ONeal <aj@therootcompany.com>
Wed, 17 Jun 2020 06:43:50 +0000 (06:43 +0000)
committerAJ ONeal <aj@therootcompany.com>
Wed, 17 Jun 2020 06:43:50 +0000 (06:43 +0000)
webi/install.sh
webi/package.yash [new file with mode: 0644]
webi/releases.js [new file with mode: 0644]

index 535598d81830495800029614069b8bbda98e3ff6..6531614baa1dfd9a2027b93165fcc197d190f351 100644 (file)
@@ -1,49 +1,7 @@
 #!/bin/bash
 
-# title: Webi
-# homepage: https://webinstall.dev
-# tagline: |
-#   Webi is how developers install their tools.
-# description: |
-#   Webi is what you would have created if you automated how you install your common tools yourself: Simple, direct downloads from official sources, unpacked into `$HOME/.local`, added to `PATH`, symlinked for easy version switching, with minimal niceties like resuming downloads and 'stable' tags.
-#   
-#   - Easy to remember.
-#   - No magic, no nonesense, no bulk.
-#   - What you would have done for yourself.
-#
-# examples: |
-#   You can install _exactly_ what you need, from memory, via URL:
-#
-#   ```bash
-#   curl https://webinstall.dev/node@lts | bash
-#   ```
-#
-#   Or via `webi`, the tiny `curl | bash` shortcut command that comes with each install:
-#
-#   ```bash
-#   webi node@latest
-#   ```
-#
-#   ```bash
-#   webi golang@v1.14
-#   ```
-#
-#   ```bash
-#   webi rustlang
-#   ```
-#
-#   You can see exactly what PATHs have been edited:
-#
-#   ```bash
-#   pathman list
-#   ```
-#
-#   And where:
-#
-#   ```bash
-#   cat $HOME/.config/envman/PATH.env
-#   ```
-#
+# Note: 'webi' is a special case. It's actually just a helper utility that comes with every installer.
+#       See https://github.com/webinstall/packages/blob/master/_webi/bootstrap.sh for the source.
 
 {
 
diff --git a/webi/package.yash b/webi/package.yash
new file mode 100644 (file)
index 0000000..57c4fa8
--- /dev/null
@@ -0,0 +1,46 @@
+# title: Webi
+# homepage: https://webinstall.dev
+# tagline: |
+#   Webi is how developers install their tools.
+# description: |
+#   Webi is what you would have created if you automated how you install your common tools yourself: Simple, direct downloads from official sources, unpacked into `$HOME/.local`, added to `PATH`, symlinked for easy version switching, with minimal niceties like resuming downloads and 'stable' tags.
+#   
+#   - Easy to remember.
+#   - No magic, no nonesense, no bulk.
+#   - What you would have done for yourself.
+#
+# examples: |
+#   You can install _exactly_ what you need, from memory, via URL:
+#
+#   ```bash
+#   curl https://webinstall.dev/node@lts | bash
+#   ```
+#
+#   Or via `webi`, the tiny `curl | bash` shortcut command that comes with each install:
+#
+#   ```bash
+#   webi node@latest
+#   ```
+#
+#   ```bash
+#   webi golang@v1.14
+#   ```
+#
+#   ```bash
+#   webi rustlang
+#   ```
+#
+#   You can see exactly what PATHs have been edited:
+#
+#   ```bash
+#   pathman list
+#   ```
+#
+#   And where:
+#
+#   ```bash
+#   cat $HOME/.config/envman/PATH.env
+#   ```
+#
+
+END
diff --git a/webi/releases.js b/webi/releases.js
new file mode 100644 (file)
index 0000000..f6deae5
--- /dev/null
@@ -0,0 +1,43 @@
+'use strict';
+
+module.exports = async function () {
+  return {
+    releases: [
+      {
+        name: 'webi.tar',
+        version: '0.0.0',
+        lts: false,
+        channel: 'stable',
+        date: '',
+        os: 'linux',
+        arch: 'amd64',
+        ext: 'tar',
+        download: ''
+      },
+      {
+        name: 'webi.tar',
+        version: '0.0.0',
+        lts: false,
+        channel: 'stable',
+        date: '',
+        os: 'macos',
+        arch: 'amd64',
+        ext: 'tar',
+        download: ''
+      },
+      {
+        name: 'webi.tar',
+        version: '0.0.0',
+        lts: false,
+        channel: 'stable',
+        date: '',
+        os: 'windows',
+        arch: 'amd64',
+        ext: 'tar',
+        download: ''
+      }
+    ],
+    formats: [],
+    downloads: ''
+  };
+};