diff --git a/build/manifest.json b/build/manifest.json index f4ce271..ce506f2 100755 --- a/build/manifest.json +++ b/build/manifest.json @@ -12,10 +12,10 @@ }, "browser_action": { "default_icon": "assets/icon.png", - "default_popup": "src/receiver.html" + "default_popup": "static/receiver.html" }, "options_ui": { - "page": "src/options.html", + "page": "static/options.html", "chrome_style": true }, "permissions": [ diff --git a/build/src/background.js b/build/src/background.js index 561c60b..d0f7f9e 100644 --- a/build/src/background.js +++ b/build/src/background.js @@ -17,7 +17,7 @@ console.log('in src/background.js'); chrome.runtime.onInstalled.addListener(function (details) { if (details.reason == 'install') { chrome.tabs.create({ - url: chrome.extension.getURL('src/install.html'), + url: chrome.extension.getURL('../static/install.html'), active: true, }); } @@ -64,7 +64,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -74,7 +74,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -84,7 +84,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = true; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/ok.png', + iconUrl: '../assets/ok.png', title: 'ExtensionForYou', message: 'You are now ready to resume recording.', requireInteraction: true, @@ -148,7 +148,7 @@ function StartRecording(stream) { }) .catch(getUserMediaError); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); } function getUserMediaError(error) { alert('src/background.js: getUserMedia() error: ', error); @@ -156,12 +156,12 @@ function getUserMediaError(error) { function PauseRecording() { rec.pause(); clearInterval(runner); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); } function ResumeRecording() { rec.resume(); runner = setInterval(mainTimer, 1000); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); chrome.notifications.clear('extfy1'); } function StopRecording() { @@ -169,7 +169,7 @@ function StopRecording() { clearInterval(runner); x = 1; rec.stop(); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); chrome.notifications.clear('extfy1'); } function mainTimer() { diff --git a/build/install.html b/build/static/install.html old mode 100755 new mode 100644 similarity index 79% rename from build/install.html rename to build/static/install.html index 91bdb94..d42785e --- a/build/install.html +++ b/build/static/install.html @@ -62,16 +62,17 @@
- +
Allow Screen Recorder to use your microphone.
- +

Welcome to Screen Recorder

- Tap the ’Screen icon at the top right of your browser to start and stop recording. + Tap the ’Screen icon at the top right of your browser to start and stop + recording.
- - + + diff --git a/src/options.html b/build/static/options.html similarity index 93% rename from src/options.html rename to build/static/options.html index 83be5c7..ba235f1 100644 --- a/src/options.html +++ b/build/static/options.html @@ -28,6 +28,6 @@
- + diff --git a/src/receiver.html b/build/static/receiver.html similarity index 97% rename from src/receiver.html rename to build/static/receiver.html index 650946a..c155678 100644 --- a/src/receiver.html +++ b/build/static/receiver.html @@ -81,6 +81,6 @@

- + diff --git a/manifest.json b/manifest.json index f4ce271..ce506f2 100755 --- a/manifest.json +++ b/manifest.json @@ -12,10 +12,10 @@ }, "browser_action": { "default_icon": "assets/icon.png", - "default_popup": "src/receiver.html" + "default_popup": "static/receiver.html" }, "options_ui": { - "page": "src/options.html", + "page": "static/options.html", "chrome_style": true }, "permissions": [ diff --git a/release.sh b/release.sh index 16fe3e8..fff33a5 100755 --- a/release.sh +++ b/release.sh @@ -4,6 +4,7 @@ rm -rf build mkdir build mkdir build/src mkdir build/assets +mkdir build/static cp src/background.js build/src/. cp src/install.js build/src/. cp manifest.json build/. @@ -14,8 +15,8 @@ cp assets/arrow.png build/assets/. cp assets/arrow_black.png build/assets/. cp assets/icon.png build/assets/. cp assets/icon_red.png build/assets/. -cp src/install.html build/. -cp src/receiver.html build/. -cp src/options.html build/. +cp static/install.html build/static/. +cp static/receiver.html build/static/. +cp static/options.html build/static/. cd build zip ../release.zip * diff --git a/release.zip b/release.zip index 5c384e1..d00486e 100644 Binary files a/release.zip and b/release.zip differ diff --git a/src/background.js b/src/background.js index 561c60b..d0f7f9e 100644 --- a/src/background.js +++ b/src/background.js @@ -17,7 +17,7 @@ console.log('in src/background.js'); chrome.runtime.onInstalled.addListener(function (details) { if (details.reason == 'install') { chrome.tabs.create({ - url: chrome.extension.getURL('src/install.html'), + url: chrome.extension.getURL('../static/install.html'), active: true, }); } @@ -64,7 +64,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -74,7 +74,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -84,7 +84,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = true; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/ok.png', + iconUrl: '../assets/ok.png', title: 'ExtensionForYou', message: 'You are now ready to resume recording.', requireInteraction: true, @@ -148,7 +148,7 @@ function StartRecording(stream) { }) .catch(getUserMediaError); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); } function getUserMediaError(error) { alert('src/background.js: getUserMedia() error: ', error); @@ -156,12 +156,12 @@ function getUserMediaError(error) { function PauseRecording() { rec.pause(); clearInterval(runner); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); } function ResumeRecording() { rec.resume(); runner = setInterval(mainTimer, 1000); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); chrome.notifications.clear('extfy1'); } function StopRecording() { @@ -169,7 +169,7 @@ function StopRecording() { clearInterval(runner); x = 1; rec.stop(); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); chrome.notifications.clear('extfy1'); } function mainTimer() { diff --git a/src/install.html b/static/install.html similarity index 79% rename from src/install.html rename to static/install.html index 91bdb94..d42785e 100644 --- a/src/install.html +++ b/static/install.html @@ -62,16 +62,17 @@
- +
Allow Screen Recorder to use your microphone.
- +

Welcome to Screen Recorder

- Tap the ’Screen icon at the top right of your browser to start and stop recording. + Tap the ’Screen icon at the top right of your browser to start and stop + recording.
- - + + diff --git a/build/options.html b/static/options.html similarity index 93% rename from build/options.html rename to static/options.html index 83be5c7..ba235f1 100644 --- a/build/options.html +++ b/static/options.html @@ -28,6 +28,6 @@
- + diff --git a/build/receiver.html b/static/receiver.html old mode 100755 new mode 100644 similarity index 97% rename from build/receiver.html rename to static/receiver.html index 650946a..c155678 --- a/build/receiver.html +++ b/static/receiver.html @@ -81,6 +81,6 @@

- +