init
This commit is contained in:
20
nv/html/dwv/resources/scripts/chrome-background.js
Normal file
20
nv/html/dwv/resources/scripts/chrome-background.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/* global chrome */
|
||||
|
||||
// local chrome app setting
|
||||
// Goes in pair with a simple manifest.json including name, description,
|
||||
// version, icons and this:
|
||||
//
|
||||
// "app": {
|
||||
// "background": {
|
||||
// "scripts": ["/resources/scripts/chrome-background.js"]
|
||||
// }
|
||||
// },
|
||||
|
||||
chrome.app.runtime.onLaunched.addListener(function() {
|
||||
chrome.app.window.create('../viewers/mobile/index.html', {
|
||||
'bounds': {
|
||||
'width': 1100,
|
||||
'height': 800
|
||||
}
|
||||
});
|
||||
});
|
||||
19
nv/html/dwv/resources/scripts/manifest.webapp
Normal file
19
nv/html/dwv/resources/scripts/manifest.webapp
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "dwv",
|
||||
"description": "DICOM Web Viewer.",
|
||||
"version": "0.23.0-beta",
|
||||
"developer": {
|
||||
"name": "ivmartel",
|
||||
"url": "https://github.com/ivmartel"
|
||||
},
|
||||
"default_locale": "en",
|
||||
"launch_path": "/dwv/demo/stable/viewers/mobile/index.html",
|
||||
"appcache_path": "/dwv/demo/stable/viewers/mobile/cache.manifest",
|
||||
"icons": {
|
||||
"16": "/dwv/demo/stable/resources/icons/dwv-16.png",
|
||||
"32": "/dwv/demo/stable/resources/icons/dwv-32.png",
|
||||
"60": "/dwv/demo/stable/resources/icons/dwv-60.png",
|
||||
"90": "/dwv/demo/stable/resources/icons/dwv-90.png",
|
||||
"128": "/dwv/demo/stable/resources/icons/dwv-128.png"
|
||||
}
|
||||
}
|
||||
26
nv/html/dwv/resources/scripts/update-gh-pages.sh
Normal file
26
nv/html/dwv/resources/scripts/update-gh-pages.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
#Script to push build results on the repository gh-pages branch.
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||
echo -e "Starting to update gh-pages\n"
|
||||
#copy data we're interested in to other place
|
||||
cp -R build $HOME/built
|
||||
#go to home and setup git
|
||||
cd $HOME
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis"
|
||||
#using token clone gh-pages branch
|
||||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/ivmartel/dwv.git gh-pages > /dev/null
|
||||
#go into directory and copy data we're interested in to that directory
|
||||
cd gh-pages
|
||||
#clean doc dir
|
||||
rm -Rf demo/trunk/doc/*
|
||||
#copy new build
|
||||
cp -Rf $HOME/built/dist/* demo/trunk
|
||||
cp -Rf $HOME/built/doc demo/trunk
|
||||
#add, commit and push files
|
||||
git add -Af .
|
||||
git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages"
|
||||
git push -fq origin gh-pages > /dev/null
|
||||
echo -e "Done updating.\n"
|
||||
fi
|
||||
Reference in New Issue
Block a user