@leverege/build-tools 2.52.0-pedro.4 → 2.52.0-pedro.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.52.0-pedro.4",
3
+ "version": "2.52.0-pedro.6",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -63,6 +63,8 @@ echo ""
63
63
  # Encode key to base64
64
64
  ENCODED_KEY=$(base64 -i $SERVICE_ACCOUNT_KEY_PATH -o -)
65
65
 
66
+ echo $ENCODED_KEY
67
+
66
68
  # Write to pip.conf
67
69
  mkdir -p $HOME/.config/pip
68
70
  cat <<EOF > $HOME/.config/pip/pip.conf
@@ -84,12 +86,14 @@ password: $ENCODED_KEY
84
86
  EOF
85
87
  echo "Updated $HOME/.pypirc"
86
88
 
89
+ escape_for_sed() {
90
+ printf '%s\n' "$1" | sed -e 's/[\/&]/\\&/g'
91
+ }
87
92
 
88
93
  UV_EXTRA_INDEX_URL="https://_json_key_base64:$ENCODED_KEY@us-python.pkg.dev/leverege-registry/leverege-python-packages/simple"
89
94
  UV_EXTRA_INDEX_URL_E=$(escape_for_sed "$UV_EXTRA_INDEX_URL")
90
95
 
91
- # List of shell configuration files to update
92
- SHELLS=("bash" "zsh" "fish")
96
+ SHELLS=("bash" "dash" "zsh" "fish")
93
97
 
94
98
  for SHELL in "${SHELLS[@]}"; do
95
99
  if command -v "$SHELL" >/dev/null 2>&1; then
@@ -97,6 +101,9 @@ for SHELL in "${SHELLS[@]}"; do
97
101
  bash)
98
102
  config_file="${HOME}/.bashrc"
99
103
  ;;
104
+ dash)
105
+ config_file="${HOME}/.profile"
106
+ ;;
100
107
  zsh)
101
108
  config_file="${HOME}/.zshrc"
102
109
  ;;
@@ -129,7 +136,8 @@ done
129
136
 
130
137
  echo ""
131
138
  echo "Please source your shell configuration to apply the changes."
132
- echo "Example: source ~/.bashrc"
133
- echo "Example: source ~/.zshrc"
134
- echo "Example: source ~/.config/fish/config.fish"
139
+ echo "Example (bash): source ~/.bashrc"
140
+ echo "Example (dash): source ~/.profile"
141
+ echo "Example (zsh): source ~/.zshrc"
142
+ echo "Example (fish): source ~/.config/fish/config.fish"
135
143
  echo ""
@@ -34,8 +34,7 @@ escape_for_sed() {
34
34
  UV_EXTRA_INDEX_URL="https://oauth2accesstoken:$TOKEN@us-python.pkg.dev/leverege-registry/leverege-python-packages/simple"
35
35
  UV_EXTRA_INDEX_URL_E=$(escape_for_sed "$UV_EXTRA_INDEX_URL")
36
36
 
37
- # List of shell configuration files to update
38
- SHELLS=("bash" "zsh" "fish")
37
+ SHELLS=("bash" "dash" "zsh" "fish")
39
38
 
40
39
  for SHELL in "${SHELLS[@]}"; do
41
40
  if command -v "$SHELL" >/dev/null 2>&1; then
@@ -43,6 +42,9 @@ for SHELL in "${SHELLS[@]}"; do
43
42
  bash)
44
43
  config_file="${HOME}/.bashrc"
45
44
  ;;
45
+ dash)
46
+ config_file="${HOME}/.profile"
47
+ ;;
46
48
  zsh)
47
49
  config_file="${HOME}/.zshrc"
48
50
  ;;
@@ -75,7 +77,8 @@ done
75
77
 
76
78
  echo ""
77
79
  echo "Please source your shell configuration to apply the changes."
78
- echo "Example: source ~/.bashrc"
79
- echo "Example: source ~/.zshrc"
80
- echo "Example: source ~/.config/fish/config.fish"
80
+ echo "Example (bash): source ~/.bashrc"
81
+ echo "Example (dash): source ~/.profile"
82
+ echo "Example (zsh): source ~/.zshrc"
83
+ echo "Example (fish): source ~/.config/fish/config.fish"
81
84
  echo ""