diff --git a/.pre.now.md b/.pre.now.md index bb13656..ce521cc 100644 --- a/.pre.now.md +++ b/.pre.now.md @@ -1 +1,2 @@ -- Root Focus @ +- Root Focus + - fix install via kit @ diff --git a/pre.sh b/bin/pre.sh similarity index 100% rename from pre.sh rename to bin/pre.sh diff --git a/bundle.sh b/bundle.sh new file mode 100755 index 0000000..d19dc86 --- /dev/null +++ b/bundle.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +# Define the name of the bundled archive +BUNDLE_NAME="pre.tar.gz" + +# Define the directories and files to include in the bundle +INCLUDE_DIRS=("bin" "lib") +INCLUDE_FILES=("install.sh" "uninstall.sh" "LICENSE" "README.md" ".gitattributes" ".pre.now.md") + +# Create a temporary directory for bundling +TEMP_DIR=$(mktemp -d) + +# Copy the necessary directories and files to the temporary directory +for dir in "${INCLUDE_DIRS[@]}"; do + cp -r "$dir" "$TEMP_DIR/" +done + +for file in "${INCLUDE_FILES[@]}"; do + cp "$file" "$TEMP_DIR/" +done + +# Create the dist directory if it doesn't exist +DIST_DIR="dist" +mkdir -p "$DIST_DIR" + +# Create the bundled archive in the dist directory +tar -czvf "$DIST_DIR/$BUNDLE_NAME" -C "$TEMP_DIR" . + +# Clean up the temporary directory +rm -rf "$TEMP_DIR" + +echo "Bundling complete. Created archive: $DIST_DIR/$BUNDLE_NAME" diff --git a/dist/pre.tar.gz b/dist/pre.tar.gz new file mode 100644 index 0000000..a590b67 Binary files /dev/null and b/dist/pre.tar.gz differ diff --git a/now.log b/now.log index a49b225..8ceb337 100644 --- a/now.log +++ b/now.log @@ -10,3 +10,6 @@ [2024-08-08T23:18:52.927Z] Complete: Root Focus / improve the folder setup process [2024-08-08T23:19:24.305Z] Complete: Root Focus / .gitignore DS_Store [2024-08-09T00:13:41.979Z] Complete: Root Focus / add way to update templates +[2024-08-09T00:40:05.274Z] Complete: Root Focus / Fix install via kit / Add bundling / reorganize the app files +[2024-08-09T00:40:08.219Z] Complete: Root Focus / Fix install via kit / Add bundling +[2024-08-09T00:40:12.051Z] Complete: Root Focus / Fix install via kit diff --git a/templates/v1.0.0/.structure_version b/templates/v1.0.0/.structure_version deleted file mode 100644 index afaf360..0000000 --- a/templates/v1.0.0/.structure_version +++ /dev/null @@ -1 +0,0 @@ -1.0.0 \ No newline at end of file diff --git a/templates/v1.0.0/.vscode/extensions.json b/templates/v1.0.0/.vscode/extensions.json deleted file mode 100644 index 96889c8..0000000 --- a/templates/v1.0.0/.vscode/extensions.json +++ /dev/null @@ -1 +0,0 @@ -{ "recommendations": ["eamodio.toggle-excluded-files"] } diff --git a/templates/v1.0.0/.vscode/project.code-workspace b/templates/v1.0.0/.vscode/project.code-workspace deleted file mode 100644 index 510dec6..0000000 --- a/templates/v1.0.0/.vscode/project.code-workspace +++ /dev/null @@ -1,9 +0,0 @@ -{ - "folders": [{"path": ".."}], - "settings": {}, - "launch": {"version": "0.2.0", "configurations": []}, - "tasks": {"version": "2.0.0", "tasks": []}, - "extensions": {"recommendations": []}, - "unwantedRecommendations": [], - "startup": [{"task": "Open Project Files"}] -} \ No newline at end of file diff --git a/templates/v1.0.0/.vscode/settings.json b/templates/v1.0.0/.vscode/settings.json deleted file mode 100644 index 275d46e..0000000 --- a/templates/v1.0.0/.vscode/settings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "toggleexcludedfiles.files": ["links.md", "projects.md"], - "workbench.editorAssociations": {"*.md": "vscode.markdown.preview.editor"}, - "workbench.editor.openPositioning": "right", - "workbench.editor.closeEmptyGroups": false, - "workbench.editor.splitSizing": "split", - "workbench.panel.defaultLocation": "right" -} \ No newline at end of file diff --git a/templates/v1.0.0/.vscode/tasks.json b/templates/v1.0.0/.vscode/tasks.json deleted file mode 100644 index 98b3b2a..0000000 --- a/templates/v1.0.0/.vscode/tasks.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "Open Project Files", - "type": "shell", - "command": "code", - "args": ["-r", ".", "-g", "links.md:1", "-g", "projects.md:2"], - "problemMatcher": [] - } - ] -} \ No newline at end of file diff --git a/templates/v1.0.0/README.md b/templates/v1.0.0/README.md deleted file mode 100644 index a228fbf..0000000 --- a/templates/v1.0.0/README.md +++ /dev/null @@ -1 +0,0 @@ -# {{PROJECT_NAME}} diff --git a/templates/v1.0.0/docs/notes.md b/templates/v1.0.0/docs/notes.md deleted file mode 100644 index e649343..0000000 --- a/templates/v1.0.0/docs/notes.md +++ /dev/null @@ -1,11 +0,0 @@ -# Notes - -## Goals - -## Questions - -## Design - -## Risks - -## Assumptions