Compare commits
No commits in common. "main" and "1.4" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
output
|
|
||||||
manifest.json
|
|
||||||
26
bin/build.sh
26
bin/build.sh
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
VERSION=1.5
|
|
||||||
|
|
||||||
# Check if any arguments are passed
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
# Default targets if no arguments are given
|
|
||||||
targets=("chrome" "firefox")
|
|
||||||
else
|
|
||||||
# Use the provided arguments as targets
|
|
||||||
targets=("$@")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Iterate over each target
|
|
||||||
for target in "${targets[@]}"; do
|
|
||||||
# Remove old file if exists
|
|
||||||
rm "output/sleepytabs_${VERSION}_${target}.zip" 2>/dev/null
|
|
||||||
|
|
||||||
# Create a zip file excluding bin/* and ./manifest*.json
|
|
||||||
zip -r "output/sleepytabs_${VERSION}_${target}.zip" . -x ".git*" "bin*" "output*" "./manifest*.json"
|
|
||||||
|
|
||||||
# Copy the target-specific manifest file into the zip
|
|
||||||
cp "manifest-${target}.json" "manifest.json"
|
|
||||||
zip -u "output/sleepytabs_${VERSION}_${target}.zip" "manifest.json"
|
|
||||||
rm "manifest.json"
|
|
||||||
|
|
||||||
done
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "SleepyTabs",
|
|
||||||
"description": "Suspend tabs when not in use",
|
|
||||||
"homepage_url": "https://sleepytabs.app",
|
|
||||||
"version": "1.5",
|
|
||||||
"manifest_version": 3,
|
|
||||||
"icons": {
|
|
||||||
"16": "icon16.png",
|
|
||||||
"48": "icon48.png",
|
|
||||||
"128": "icon128.png"
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"scripts": ["service_worker.js"]
|
|
||||||
},
|
|
||||||
"permissions": ["alarms", "storage", "tabs"],
|
|
||||||
"action": {
|
|
||||||
"default_popup": "popup.html"
|
|
||||||
},
|
|
||||||
"options_page": "options.html",
|
|
||||||
"browser_specific_settings": {
|
|
||||||
"gecko": {
|
|
||||||
"id": "sleepy-tabs@sleepytabs.app"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "SleepyTabs",
|
"name": "SleepyTabs",
|
||||||
"description": "Suspend tabs when not in use",
|
"description": "Suspend tabs when not in use",
|
||||||
"homepage_url": "https://sleepytabs.app",
|
"homepage_url": "https://sleepytabs.app",
|
||||||
"version": "1.5",
|
"version": "1.4",
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "icon16.png",
|
"16": "icon16.png",
|
||||||
@ -12,7 +12,11 @@
|
|||||||
"background": {
|
"background": {
|
||||||
"service_worker": "service_worker.js"
|
"service_worker": "service_worker.js"
|
||||||
},
|
},
|
||||||
"permissions": ["alarms", "storage", "tabs"],
|
"permissions": [
|
||||||
|
"alarms",
|
||||||
|
"storage",
|
||||||
|
"tabs"
|
||||||
|
],
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
},
|
},
|
||||||
@ -3,7 +3,6 @@ html {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 130%;
|
font-size: 130%;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-family: "Segoe UI", Tahoma, sans-serif;
|
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<img src="logo.svg" width="128" />
|
<img src="logo.svg" width="128" />
|
||||||
<h1>SleepyTabs</h1>
|
<h1>SleepyTabs</h1>
|
||||||
<h5>Version 1.5</h5>
|
<h5>Version 1.3</h5>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -2,7 +2,6 @@ html, body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: "Segoe UI", Tahoma, sans-serif;
|
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
@ -4,7 +4,6 @@ html {
|
|||||||
font-size: 130%;
|
font-size: 130%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 75px;
|
padding: 75px;
|
||||||
font-family: "Segoe UI", Tahoma, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html > img {
|
html > img {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user