Skip to content

Commit

Permalink
Support RingCentral Video
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Apr 2, 2020
1 parent 51ba00c commit 6ddde7c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 36 deletions.
30 changes: 30 additions & 0 deletions bin/pack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* pack dist folders to zip file for release
*/

const {
exec,
rm
} = require('shelljs')
const pack = require('../package.json')

// zip -vr folder.zip folder/ -x "*.DS_Store"
// hubspot-embeddable-ringcentral-phone-google-chrome-1.6.0.zip
// hubspot-embeddable-ringcentral-phone-mozilla-firefox-1.8.4.zip

const config = [
{
name: 'google-chrome',
folder: 'dist'
}
]

async function run () {
rm('-rf', '*.zip')
for (let v of config) {
let cmd = `zip -vr ${pack.name}-${v.name}-${pack.version}.zip ${v.folder}/ -x "*.DS_Store"`
exec(cmd)
}
}

run()
60 changes: 29 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringCentral-for-practice-suite-extension",
"version": "0.1.0",
"version": "0.2.0",
"description": "RingCentral for PracticeSuite Chrome extension",
"keywords": [
"RingCentral",
Expand All @@ -13,7 +13,8 @@
"start": "npm run build",
"postinstall": "node bin/post-install",
"lint": "./node_modules/.bin/standard",
"fix": "./node_modules/.bin/standard --fix"
"fix": "./node_modules/.bin/standard --fix",
"pack": "node bin/pack.js"
},
"devDependencies": {
"@babel/cli": "7.4.3",
Expand Down Expand Up @@ -44,7 +45,7 @@
"npm-run-all": "4.1.3",
"pug-html-loader": "1.1.5",
"recursive-assign": "0.2.0",
"ringcentral-embeddable-extension-common": "0.5.11",
"ringcentral-embeddable-extension-common": "0.8.2",
"shelljs": "0.8.2",
"standard": "^12.0.1",
"style-loader": "0.21.0",
Expand Down
2 changes: 1 addition & 1 deletion src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function injectWidget () {
;(function() {
console.log('import RingCentral Embeddable Voice to web page')
var rcs = document.createElement('script')
rcs.src = 'https://ringcentral.github.io/ringcentral-embeddable/adapter.js' + appConfigQuery
rcs.src = 'https://apps.ringcentral.com/integration/ringcentral-embeddable-preview/adapter.js' + appConfigQuery
var rcs0 = document.getElementsByTagName('script')[0]
rcs0.parentNode.insertBefore(rcs, rcs0)
})()
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RingCentral for PracticeSuite",
"version": "0.1.0",
"version": "0.2.0",
"description": "RingCentral for PracticeSuite",
"permissions": [
"http://*/",
Expand Down

0 comments on commit 6ddde7c

Please sign in to comment.