Browse Source

Merge pull request #116 from SuperNETorg/pkg_automation

Pkg automation
all-modes v0.2.0.1a-beta
pbca26 8 years ago
committed by GitHub
parent
commit
da96d43292
  1. 11
      binary_artifacts.sh
  2. 40
      buildscripts/AgamaApp-linux.xml
  3. 10
      buildscripts/AgamaApp-osx.xml
  4. 49
      buildscripts/AgamaApp-windows.xml
  5. 17
      buildscripts/electron-build-all.sh
  6. 16
      buildscripts/electron-build-linux.sh
  7. 17
      buildscripts/electron-build-osx.sh
  8. 18
      buildscripts/electron-build-windows.sh
  9. 18
      routes/shepherd.js

11
binary_artifacts.sh

@ -0,0 +1,11 @@
echo Refreshing binaries from artifacts.supernet.org
echo =========================================
echo Step: Removing old binaries
cd build
rm -rvf artifacts.supernet.org
echo
echo Step: Cloning latest binaries for build
wget --recursive --no-parent https://artifacts.supernet.org/latest/
cd ..
echo =========================================
echo

40
assets/bitrock_installer/AgamaApp-linux.xml → buildscripts/AgamaApp-linux.xml

@ -2,10 +2,10 @@
<shortName>AgamaApp</shortName>
<fullName>Agama</fullName>
<version>${PKG_VERSION}</version>
<licenseFile>../../LICENSE</licenseFile>
<leftImage>../installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../installer_imgs/Agama_installer_splash_image.png</splashImage>
<licenseFile>../LICENSE</licenseFile>
<leftImage>../assets/installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../assets/installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../assets/installer_imgs/Agama_installer_splash_image.png</splashImage>
<allowLanguageSelection>1</allowLanguageSelection>
<componentList>
<component>
@ -39,52 +39,52 @@
<platforms>all</platforms>
<distributionFileList>
<distributionDirectory>
<origin>../../build/Agama-linux-x64/locales</origin>
<origin>../build/Agama-linux-x64/locales</origin>
</distributionDirectory>
<distributionDirectory>
<origin>../../build/Agama-linux-x64/resources</origin>
<origin>../build/Agama-linux-x64/resources</origin>
</distributionDirectory>
<distributionFile>
<origin>../../build/Agama-linux-x64/version</origin>
<origin>../build/Agama-linux-x64/version</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/content_resources_200_percent.pak</origin>
<origin>../build/Agama-linux-x64/content_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/LICENSE</origin>
<origin>../build/Agama-linux-x64/LICENSE</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/blink_image_resources_200_percent.pak</origin>
<origin>../build/Agama-linux-x64/blink_image_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/views_resources_200_percent.pak</origin>
<origin>../build/Agama-linux-x64/views_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/ui_resources_200_percent.pak</origin>
<origin>../build/Agama-linux-x64/ui_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/natives_blob.bin</origin>
<origin>../build/Agama-linux-x64/natives_blob.bin</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/snapshot_blob.bin</origin>
<origin>../build/Agama-linux-x64/snapshot_blob.bin</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/LICENSES.chromium.html</origin>
<origin>../build/Agama-linux-x64/LICENSES.chromium.html</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/libffmpeg.so</origin>
<origin>../build/Agama-linux-x64/libffmpeg.so</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/content_shell.pak</origin>
<origin>../build/Agama-linux-x64/content_shell.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/icudtl.dat</origin>
<origin>../build/Agama-linux-x64/icudtl.dat</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/libnode.so</origin>
<origin>../build/Agama-linux-x64/libnode.so</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-linux-x64/Agama</origin>
<origin>../build/Agama-linux-x64/Agama</origin>
</distributionFile>
</distributionFileList>
</folder>

10
assets/bitrock_installer/AgamaApp-osx.xml → buildscripts/AgamaApp-osx.xml

@ -2,10 +2,10 @@
<shortName>AgamaApp</shortName>
<fullName>Agama</fullName>
<version>${PKG_VERSION}</version>
<licenseFile>../../LICENSE</licenseFile>
<leftImage>../installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../installer_imgs/Agama_installer_splash_image.png</splashImage>
<licenseFile>../LICENSE</licenseFile>
<leftImage>../assets/installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../assets/installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../assets/installer_imgs/Agama_installer_splash_image.png</splashImage>
<allowLanguageSelection>1</allowLanguageSelection>
<componentList>
<component>
@ -41,7 +41,7 @@
<platforms>osx</platforms>
<distributionFileList>
<distributionFile>
<origin>../../build/Agama-darwin-x64/Agama.app</origin>
<origin>../build/Agama-darwin-x64/Agama.app</origin>
</distributionFile>
</distributionFileList>
</folder>

49
assets/bitrock_installer/AgamaApp-windows.xml → buildscripts/AgamaApp-windows.xml

@ -2,10 +2,10 @@
<shortName>AgamaApp</shortName>
<fullName>Agama</fullName>
<version>${PKG_VERSION}</version>
<licenseFile>../../LICENSE</licenseFile>
<leftImage>../installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../installer_imgs/Agama_installer_splash_image.png</splashImage>
<licenseFile>../LICENSE</licenseFile>
<leftImage>../assets/installer_imgs/Agama_installer_wizard_image.png</leftImage>
<logoImage>../assets/installer_imgs/supernet-agama-logo.png</logoImage>
<splashImage>../assets/installer_imgs/Agama_installer_splash_image.png</splashImage>
<allowLanguageSelection>1</allowLanguageSelection>
<componentList>
<component>
@ -67,64 +67,61 @@
<platforms>windows</platforms>
<distributionFileList>
<distributionDirectory>
<origin>../../build/Agama-win32-x64/locales</origin>
<origin>../build/Agama-win32-ia32/locales</origin>
</distributionDirectory>
<distributionDirectory>
<origin>../../build/Agama-win32-x64/resources</origin>
<origin>../build/Agama-win32-ia32/resources</origin>
</distributionDirectory>
<distributionFile>
<origin>../../build/Agama-win32-x64/blink_image_resources_200_percent.pak</origin>
<origin>../build/Agama-win32-ia32/blink_image_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/content_resources_200_percent.pak</origin>
<origin>../build/Agama-win32-ia32/content_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/content_shell.pak</origin>
<origin>../build/Agama-win32-ia32/content_shell.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/ui_resources_200_percent.pak</origin>
<origin>../build/Agama-win32-ia32/ui_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/views_resources_200_percent.pak</origin>
<origin>../build/Agama-win32-ia32/views_resources_200_percent.pak</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/icudtl.dat</origin>
<origin>../build/Agama-win32-ia32/icudtl.dat</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/LICENSES.chromium.html</origin>
<origin>../build/Agama-win32-ia32/LICENSES.chromium.html</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/natives_blob.bin</origin>
<origin>../build/Agama-win32-ia32/natives_blob.bin</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/snapshot_blob.bin</origin>
<origin>../build/Agama-win32-ia32/snapshot_blob.bin</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/d3dcompiler_47.dll</origin>
<origin>../build/Agama-win32-ia32/d3dcompiler_47.dll</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/ffmpeg.dll</origin>
<origin>../build/Agama-win32-ia32/ffmpeg.dll</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/libEGL.dll</origin>
<origin>../build/Agama-win32-ia32/libEGL.dll</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/libGLESv2.dll</origin>
<origin>../build/Agama-win32-ia32/libGLESv2.dll</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/node.dll</origin>
<origin>../build/Agama-win32-ia32/node.dll</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/xinput1_3.dll</origin>
<origin>../build/Agama-win32-ia32/LICENSE</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/LICENSE</origin>
<origin>../build/Agama-win32-ia32/version</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/version</origin>
</distributionFile>
<distributionFile>
<origin>../../build/Agama-win32-x64/Agama.exe</origin>
<origin>../build/Agama-win32-ia32/Agama.exe</origin>
</distributionFile>
</distributionFileList>
</folder>

17
buildscripts/electron-build-all.sh

@ -1,17 +0,0 @@
#!/bin/bash
### Build script for Iguana application for Linux x32 and x64 platform.
### Created by mmaxian, 3/2017
[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
echo "Preparing electron package $AGAMA_VERSION for Linux."
./buildscripts/electron-build-linux.sh
echo
echo "Preparing electron package $AGAMA_VERSION for Windows."
./buildscripts/electron-build-win.sh
echo
echo "Preparing electron package $AGAMA_VERSION for MacOS."
./buildscripts/electron-build-osx.sh
echo

16
buildscripts/electron-build-linux.sh

@ -4,10 +4,24 @@
[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
echo
echo =========================================
echo Step: Removing old binaries
rm -rvf artifacts.supernet.org
echo
echo Step: Cloning latest binaries for build
wget --recursive --no-parent -q https://artifacts.supernet.org/latest/linux/
find artifacts.supernet.org/latest/linux/ -exec ls -l {} \;
cd ..
echo =========================================
echo
echo "Build script for Iguana application for Linux x64 platform."
echo "Preparing electron package $AGAMA_VERSION"
electron-packager . --platform=linux --arch=x64 \
--icon=assets/icons/iguana_app_icon_png/128x128.png \
--out=build/ --buildVersion=$AGAMA_VERSION \
--ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite
--ignore=build/artifacts.supernet.org/latest/windows \
--ignore=build/artifacts.supernet.org/latest/osx \
--overwrite

17
buildscripts/electron-build-osx.sh

@ -4,9 +4,24 @@
[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
echo
echo =========================================
echo Step: Removing old binaries
rm -rvf artifacts.supernet.org
echo
echo Step: Cloning latest binaries for build
wget --recursive --no-parent -q https://artifacts.supernet.org/latest/osx/
find artifacts.supernet.org/latest/osx/ -exec ls -l {} \;
cd ..
echo =========================================
echo
echo "Build script for Iguana application for MacOS platform."
echo "Preparing electron package $AGAMA_VERSION"
electron-packager . --platform=darwin --arch=x64 \
--icon=assets/icons/iguana_app_icon.icns \
--out=build/ --buildVersion=$AGAMA_VERSION \
--ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite
--ignore=build/artifacts.supernet.org/latest/windows \
--ignore=build/artifacts.supernet.org/latest/linux \
--overwrite

18
buildscripts/electron-build-windows.sh

@ -4,10 +4,24 @@
[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0
echo
echo =========================================
echo Step: Removing old binaries
rm -rvf artifacts.supernet.org
echo
echo Step: Cloning latest binaries for build
wget --recursive --no-parent -q https://artifacts.supernet.org/latest/windows/
find artifacts.supernet.org/latest/windows/ -exec ls -l {} \;
cd ..
echo =========================================
echo
echo "Build script for Iguana application for Windows x64 platform."
echo "Preparing electron package $AGAMA_VERSION"
electron-packager . --platform=win32 --arch=x64 \
electron-packager . --platform=win32 --arch=ia32 \
--icon=assets/icons/iguana_app_icon.ico \
--out=build/ --buildVersion=$AGAMA_VERSION \
--ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite
--ignore=build/artifacts.supernet.org/latest/osx \
--ignore=build/artifacts.supernet.org/latest/linux \
--overwrite

18
routes/shepherd.js

@ -38,11 +38,11 @@ var iguanaConfsDirSrc = path.join(__dirname, '../assets/deps/confs'),
// SETTING APP ICON FOR LINUX AND WINDOWS
if (os.platform() === 'darwin') {
fixPath();
var iguanaBin = path.join(__dirname, '../assets/bin/osx/iguana'),
var iguanaBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/osx/iguana'),
iguanaDir = process.env.HOME + '/Library/Application Support/iguana',
iguanaConfsDir = iguanaDir + '/confs',
komododBin = path.join(__dirname, '../assets/bin/osx/komodod'),
komodocliBin = path.join(__dirname, '../assets/bin/osx/komodo-cli'),
komododBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/osx/komodod'),
komodocliBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/osx/komodo-cli'),
komodoDir = process.env.HOME + '/Library/Application Support/Komodo';
zcashdBin = '/Applications/ZCashSwingWalletUI.app/Contents/MacOS/zcashd',
@ -51,17 +51,17 @@ if (os.platform() === 'darwin') {
}
if (os.platform() === 'linux') {
var iguanaBin = path.join(__dirname, '../assets/bin/linux64/iguana'),
var iguanaBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/linux64/iguana'),
iguanaDir = process.env.HOME + '/.iguana',
iguanaConfsDir = iguanaDir + '/confs',
iguanaIcon = path.join(__dirname, '/assets/icons/agama_icons/128x128.png'),
komododBin = path.join(__dirname, '../assets/bin/linux64/komodod'),
komodocliBin = path.join(__dirname, '../assets/bin/linux64/komodo-cli'),
komododBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/linux64/komodod'),
komodocliBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/linux64/komodo-cli'),
komodoDir = process.env.HOME + '/.komodo';
}
if (os.platform() === 'win32') {
var iguanaBin = path.join(__dirname, '../assets/bin/win64/iguana.exe');
var iguanaBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/windows/iguana.exe');
iguanaBin = path.normalize(iguanaBin);
iguanaDir = process.env.APPDATA + '/iguana';
iguanaDir = path.normalize(iguanaDir);
@ -71,7 +71,7 @@ if (os.platform() === 'win32') {
iguanaConfsDirSrc = path.normalize(iguanaConfsDirSrc),
komododBin = path.join(__dirname, '../assets/bin/win64/komodod.exe'),
komododBin = path.normalize(komododBin),
komodocliBin = path.join(__dirname, '../assets/bin/win64/komodo-cli.exe'),
komodocliBin = path.join(__dirname, '../build/artifacts.supernet.org/latest/windows/komodo-cli.exe'),
komodocliBin = path.normalize(komodocliBin),
komodoDir = process.env.APPDATA + '/Komodo',
komodoDir = path.normalize(komodoDir);
@ -845,7 +845,7 @@ shepherd.post('/setconf', function(req, res) {
console.log(req.body);
if (os.platform() === 'win32' && req.body.chain == 'komodod') {
setkomodoconf = spawn(path.join(__dirname, '../assets/bin/win64/genkmdconf.bat'));
setkomodoconf = spawn(path.join(__dirname, '../build/artifacts.supernet.org/latest/windows/genkmdconf.bat'));
} else {
setConf(req.body.chain);
}

Loading…
Cancel
Save