Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .pre.now.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Root Focus @
- Root Focus
- fix install via kit @
File renamed without changes.
32 changes: 32 additions & 0 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -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"
Binary file added dist/pre.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions now.log
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion templates/v1.0.0/.structure_version

This file was deleted.

1 change: 0 additions & 1 deletion templates/v1.0.0/.vscode/extensions.json

This file was deleted.

9 changes: 0 additions & 9 deletions templates/v1.0.0/.vscode/project.code-workspace

This file was deleted.

8 changes: 0 additions & 8 deletions templates/v1.0.0/.vscode/settings.json

This file was deleted.

12 changes: 0 additions & 12 deletions templates/v1.0.0/.vscode/tasks.json

This file was deleted.

1 change: 0 additions & 1 deletion templates/v1.0.0/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions templates/v1.0.0/docs/notes.md

This file was deleted.