From 38aa5868767d8cbc214a05ea651303c9be8fa4b5 Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Thu, 25 Feb 2016 16:01:10 +0000 Subject: [PATCH 1/7] Add background.js, favicon.ico and index.html to pnacl.crx --- chrome_extension.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome_extension.sh b/chrome_extension.sh index 29434c9c6..54de7e635 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -15,6 +15,10 @@ cp -rf LEGAL pnacl_${BUILD_NUMBER}/ cp -rf css pnacl_${BUILD_NUMBER}/ cp -rf js pnacl_${BUILD_NUMBER}/ +cd iguana +find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico \) -exec cp -r {} ../test \; +cd - + echo Listing the contents of pnacl_${BUILD_NUMBER} ls -al pnacl_${BUILD_NUMBER}/ From dffd391cf55df00efcd422fadd27544a97ffea2d Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Thu, 25 Feb 2016 16:49:20 +0000 Subject: [PATCH 2/7] Fixed chrome extension path --- chrome_extension.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome_extension.sh b/chrome_extension.sh index 54de7e635..f889d03bc 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -16,7 +16,7 @@ cp -rf css pnacl_${BUILD_NUMBER}/ cp -rf js pnacl_${BUILD_NUMBER}/ cd iguana -find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico \) -exec cp -r {} ../test \; +find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; cd - echo Listing the contents of pnacl_${BUILD_NUMBER} From 7f4a1d84dbb1f93de309cb16436d3086b4f980db Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Fri, 26 Feb 2016 04:35:40 +0000 Subject: [PATCH 3/7] Copying images dir --- chrome_extension.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome_extension.sh b/chrome_extension.sh index f889d03bc..904286760 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -14,6 +14,7 @@ cp -rf *.html pnacl_${BUILD_NUMBER}/ cp -rf LEGAL pnacl_${BUILD_NUMBER}/ cp -rf css pnacl_${BUILD_NUMBER}/ cp -rf js pnacl_${BUILD_NUMBER}/ +cp -rf iguana/images pnacl_${BUILD_NUMBER}/ cd iguana find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; From 05c8bcd604f4de168168f5163cafeb90b52ccd31 Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Fri, 26 Feb 2016 07:40:55 +0000 Subject: [PATCH 4/7] Fixed issues with paths as images and other directories that weren't seen earlier --- chrome_extension.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/chrome_extension.sh b/chrome_extension.sh index 904286760..71f71b5ce 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -5,19 +5,18 @@ rm -rf pnacl_${BUILD_NUMBER}.zip mkdir -p pnacl_${BUILD_NUMBER} -cp -rf iguana/manifest.json pnacl_${BUILD_NUMBER}/ -cp -rf iguana/pnacl pnacl_${BUILD_NUMBER}/ +#copying required folders +cp -rf iguana/css pnacl_${BUILD_NUMBER}/ +cp -rf iguana/js pnacl_${BUILD_NUMBER}/ +cp -rf iguana/app pnacl_${BUILD_NUMBER}/ +cp -rf iguana/confs pnacl_${BUILD_NUMBER}/ +cp -rf iguana/fonts pnacl_${BUILD_NUMBER}/ +cp -rf iguana/images pnacl_${BUILD_NUMBER}/ cp -rf iguana/help pnacl_${BUILD_NUMBER}/ -cp -rf confs/* pnacl_${BUILD_NUMBER}/ -cp -rf iguana/icon128.png pnacl_${BUILD_NUMBER}/ -cp -rf *.html pnacl_${BUILD_NUMBER}/ -cp -rf LEGAL pnacl_${BUILD_NUMBER}/ -cp -rf css pnacl_${BUILD_NUMBER}/ -cp -rf js pnacl_${BUILD_NUMBER}/ -cp -rf iguana/images pnacl_${BUILD_NUMBER}/ +cp -rf iguana/pnacl pnacl_${BUILD_NUMBER}/ cd iguana -find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; +find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico -o -iname \*.json -o -iname \*.png \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; cd - echo Listing the contents of pnacl_${BUILD_NUMBER} From 0175065f32bcd6d4e0cbf42481e8449b1bcd2f08 Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Fri, 26 Feb 2016 09:37:05 +0000 Subject: [PATCH 5/7] Do not copy the object file and the .deps that make the package fatty --- chrome_extension.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome_extension.sh b/chrome_extension.sh index 71f71b5ce..d56788cd5 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -13,7 +13,8 @@ cp -rf iguana/confs pnacl_${BUILD_NUMBER}/ cp -rf iguana/fonts pnacl_${BUILD_NUMBER}/ cp -rf iguana/images pnacl_${BUILD_NUMBER}/ cp -rf iguana/help pnacl_${BUILD_NUMBER}/ -cp -rf iguana/pnacl pnacl_${BUILD_NUMBER}/ + +cp -rf iguana/pnacl/Release/{iguana.nmf,iguana.pexe} pnacl_${BUILD_NUMBER}/pnacl/Release/iguana.nmf cd iguana find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico -o -iname \*.json -o -iname \*.png \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; From fb11ca5ed9ae0d93e2ed1f83f37cd57175a0069d Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Fri, 26 Feb 2016 09:45:17 +0000 Subject: [PATCH 6/7] Fixed wrong cp --- chrome_extension.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome_extension.sh b/chrome_extension.sh index d56788cd5..00df84fc5 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -14,7 +14,7 @@ cp -rf iguana/fonts pnacl_${BUILD_NUMBER}/ cp -rf iguana/images pnacl_${BUILD_NUMBER}/ cp -rf iguana/help pnacl_${BUILD_NUMBER}/ -cp -rf iguana/pnacl/Release/{iguana.nmf,iguana.pexe} pnacl_${BUILD_NUMBER}/pnacl/Release/iguana.nmf +cp -rf iguana/pnacl/Release/{iguana.nmf,iguana.pexe} pnacl_${BUILD_NUMBER}/pnacl/Release/ cd iguana find . -maxdepth 1 \( -iname \*.js -o -iname \*.html -o -iname \*.ico -o -iname \*.json -o -iname \*.png \) -exec cp -r {} ../pnacl_${BUILD_NUMBER} \; From ef485d8dd5e740f6bfdc11f4ed6259491ad3bc4a Mon Sep 17 00:00:00 2001 From: Mayur Nagekar Date: Fri, 26 Feb 2016 09:48:17 +0000 Subject: [PATCH 7/7] Fixed wrong cp --- chrome_extension.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome_extension.sh b/chrome_extension.sh index 00df84fc5..812ae85eb 100755 --- a/chrome_extension.sh +++ b/chrome_extension.sh @@ -3,7 +3,7 @@ echo About to create a chrome extension rm -rf pnacl_${BUILD_NUMBER}.zip -mkdir -p pnacl_${BUILD_NUMBER} +mkdir -p pnacl_${BUILD_NUMBER}/pnacl/Release/ #copying required folders cp -rf iguana/css pnacl_${BUILD_NUMBER}/