Skip to content

Commit

Permalink
Fix: Dynamic package name for deployment
Browse files Browse the repository at this point in the history
Dynamically generate the package name based on the current directory for easier deployment across projects. This prevents hardcoding the package name and ensures that each project deploys correctly.
  • Loading branch information
RedAtman committed Aug 6, 2024
1 parent e343739 commit 081b896
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dev_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# local development deploy
zip -r Simplenote.sublime-package . -x ".env*" ".git/*" ".github/*" ".gitignore" ".idea/*" ".vscode/*" ".pytest_cache/*" "pyproject.toml" "package-lock.json" "package.json" "node_modules/*" ".env.*" "*.DS_Store" "assets/*" "*__pycache__/*" "tmp/*" "tests/*" "logs/*" "sublime_api.py" "dev_deploy.sh" "package-metadata.json"
dirname=$(basename "$(pwd)" | tr -d '\n')
echo $dirname
package_name=$dirname.sublime-package
echo $package_name

mv Simplenote.sublime-package $HOME/Library/Application\ Support/Sublime\ Text/Installed\ Packages/Simplenote.sublime-package
zip -r $package_name . -x ".env*" ".git/*" ".github/*" ".gitignore" ".idea/*" ".vscode/*" ".pytest_cache/*" "pyproject.toml" "package-lock.json" "package.json" "node_modules/*" ".env.*" "*.DS_Store" "assets/*" "*__pycache__/*" "tmp/*" "tests/*" "logs/*" "sublime_api.py" "dev_deploy.sh" "package-metadata.json"

mv $package_name $HOME/Library/Application\ Support/Sublime\ Text/Installed\ Packages/$package_name

0 comments on commit 081b896

Please sign in to comment.