-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from pyanderson/porting-to-firefox
Porting to Firefox
- Loading branch information
Showing
7 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
*.zip | ||
*.xpi | ||
*.crx | ||
*.pem | ||
src/manifest.json | ||
# editors | ||
*.swp | ||
*.sublime-project | ||
*.sublime-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# Grimório do Tormenta20 para o Roll20 | ||
|
||
[Roll20: Grimório do Tormenta20](https://chrome.google.com/webstore/detail/roll20-grim%C3%B3rio-do-tormen/lplnbanhibpehlmiiakcacambjleeeng). | ||
[Chrome Extension](https://chrome.google.com/webstore/detail/roll20-grim%C3%B3rio-do-tormen/lplnbanhibpehlmiiakcacambjleeeng) | ||
[Firefox Extension](https://addons.mozilla.org/pt-BR/firefox/addon/roll20-grim%C3%B3rio-do-tormenta20/) | ||
|
||
Todo o conteúdo do arquivo [src/data/spells.json](src/data/spells.json) está sob a licença [OPEN GAME LICENSE](OPEN_GAME_LICENSE). | ||
|
||
Icons from [freepik](https://www.freepik.com). | ||
|
||
## Notas do Desenvolvedor | ||
- O firefox ainda não tem suporte para a versão 3 do manifest, por isso é necessário ter as duas versões disponíveis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "Roll20: Grimório do Tormenta20", | ||
"description": "Escolha magias diretamente na sua ficha!", | ||
"version": "0.0.3", | ||
"manifest_version": 2, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"https://app.roll20.net/editor*" | ||
], | ||
"js": [ | ||
"third-party/jquery-3.6.0.min.js", | ||
"third-party/jquery-ui-1.12.1.min.js", | ||
"jquery-patch.js", | ||
"render.js", | ||
"sheet.js", | ||
"index.js" | ||
], | ||
"run_at": "document_end" | ||
} | ||
], | ||
"web_accessible_resources": [ | ||
"data/*", | ||
"index.css" | ||
], | ||
"icons": { | ||
"16": "images/16.png", | ||
"32": "images/32.png", | ||
"48": "images/48.png", | ||
"128": "images/128.png" | ||
}, | ||
"permissions": [ | ||
"activeTab" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [[ "$1" =~ ^(chrome|firefox)$ ]]; then | ||
echo "preparing $1" | ||
cp "$1"/manifest.json src/manifest.json | ||
[ -e "$1".zip ] && rm "$1".zip | ||
cd src && zip -r ../"$1".zip * && cd .. | ||
echo "$1 done" | ||
else | ||
echo "invalid option: $1" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters