Skip to content

Commit

Permalink
Merge pull request #24 from player-ui/css-script-fix
Browse files Browse the repository at this point in the history
chore: conditional sed call based on os
  • Loading branch information
rafbcampos authored Aug 19, 2024
2 parents d361dcc + 2e22627 commit 7579c9a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v0.0.14 (Mon Aug 19 2024)

#### ⚠️ Pushed to `main`

- chore: conditional sed call based on os ([@rafbcampos](https://github.com/rafbcampos))

#### Authors: 1

- Rafael Campos ([@rafbcampos](https://github.com/rafbcampos))

---

# v0.0.12 (Fri Jul 26 2024)

#### 🐛 Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser-devtools",
"displayName": "Player ui devtools",
"version": "0.0.12",
"version": "0.0.13",
"description": "Player UI devtools browser extension",
"author": "Rafael Campos <[email protected]>",
"scripts": {
Expand Down
9 changes: 7 additions & 2 deletions scripts/inject-css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ for subfolder in build/*; do

link_tag="<link rel=\"stylesheet\" href=\"$relative_file\" />"

sed -i "s|</head>|$link_tag</head>|" $devtools_file
if [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
sed -i '' "s|</head>|$link_tag</head>|" $devtools_file
else
# Other OS such as Linux, Windows, etc.
sed -i "s|</head>|$link_tag</head>|" $devtools_file
fi
done
fi
done

0 comments on commit 7579c9a

Please sign in to comment.