Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
a471f922
Commit
a471f922
authored
7 years ago
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added linux packaging
parent
c34c8b0a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
17 deletions
+29
-17
.travis.yml
.travis.yml
+4
-1
electron-builder.json
Breeze.UI/electron-builder.json
+2
-3
main.ts
Breeze.UI/main.ts
+7
-9
build.sh
build.sh
+16
-4
No files found.
.travis.yml
View file @
a471f922
...
@@ -55,7 +55,10 @@ deploy:
...
@@ -55,7 +55,10 @@ deploy:
api_key
:
api_key
:
secure
:
$secure_github_key
# this key is set on the Travis build page
secure
:
$secure_github_key
# this key is set on the Travis build page
file_glob
:
true
file_glob
:
true
file
:
"
$TRAVIS_BUILD_DIR/deploy/*.zip"
file
:
-
"
$TRAVIS_BUILD_DIR/deploy/*.zip"
-
"
$TRAVIS_BUILD_DIR/Breeze.UI/app-builds/*.deb"
-
"
$TRAVIS_BUILD_DIR/Breeze.UI/app-builds/*.tar.gz"
skip_cleanup
:
true
skip_cleanup
:
true
overwrite
:
true
overwrite
:
true
prerelease
:
true
prerelease
:
true
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/electron-builder.json
View file @
a471f922
{
{
"appId"
:
"com.stratisplatform.breeze"
,
"appId"
:
"com.stratisplatform.breeze"
,
"productName"
:
"Breeze Wallet"
,
"productName"
:
"Breeze Wallet"
,
"artifactName"
:
"${productName}.v${version}.setup.${os}.${arch}.${ext}"
"mac"
:
{
"mac"
:
{
"category"
:
"com.stratisplatform.breeze"
"category"
:
"com.stratisplatform.breeze"
},
},
...
@@ -26,9 +27,7 @@
...
@@ -26,9 +27,7 @@
"deleteAppDataOnUninstall"
:
true
,
"deleteAppDataOnUninstall"
:
true
,
"guid"
:
"ed20df62-ff5a-4b83-a5e3-a361357c6e51"
,
"guid"
:
"ed20df62-ff5a-4b83-a5e3-a361357c6e51"
,
"createDesktopShortcut"
:
false
,
"createDesktopShortcut"
:
false
,
"createStartMenuShortcut"
:
true
,
"createStartMenuShortcut"
:
true
"artifactName"
:
"${productName}.v${version}.setup.${env.win_runtime}.${ext}"
},
},
"msi"
:
{
"msi"
:
{
"warningsAsErrors"
:
false
"warningsAsErrors"
:
false
...
...
This diff is collapsed.
Click to expand it.
Breeze.UI/main.ts
View file @
a471f922
...
@@ -158,11 +158,10 @@ function startBitcoinApi() {
...
@@ -158,11 +158,10 @@ function startBitcoinApi() {
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD'
);
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD'
);
if
(
os
.
platform
()
===
'win32'
)
{
if
(
os
.
platform
()
===
'win32'
)
{
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
Stratis.BreezeD.exe'
);
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
}
else
if
(
os
.
platform
()
===
'linux'
)
{
// else if(os.platform() === 'darwin') {
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//Stratis.BreezeD.exe'
);
}
//else {
// apiPath = path.resolve(__dirname, '..//..//Content//resources//daemon//Stratis.BreezeD.exe');
// apiPath = path.resolve(__dirname, '..//..//Content//resources//daemon//Stratis.BreezeD.exe');
// } else {
// apiPath = path.resolve(__dirname, '..//..//resources//daemon//Stratis.BreezeD.exe');
// }
// }
...
@@ -186,15 +185,14 @@ function startStratisApi() {
...
@@ -186,15 +185,14 @@ function startStratisApi() {
var
stratisProcess
;
var
stratisProcess
;
const
spawnStratis
=
require
(
'child_process'
).
spawn
;
const
spawnStratis
=
require
(
'child_process'
).
spawn
;
//Start Breeze
Stratis
Daemon
//Start Breeze
Bitcoin
Daemon
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD'
);
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//Stratis.BreezeD'
);
if
(
os
.
platform
()
===
'win32'
)
{
if
(
os
.
platform
()
===
'win32'
)
{
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
Stratis.BreezeD.exe'
);
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
Stratis.BreezeD.exe'
);
}
}
else
if
(
os
.
platform
()
===
'linux'
)
{
// else if(os.platform() === 'darwin') {
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//Stratis.BreezeD.exe'
);
}
//else {
// apiPath = path.resolve(__dirname, '..//..//Content//resources//daemon//Stratis.BreezeD.exe');
// apiPath = path.resolve(__dirname, '..//..//Content//resources//daemon//Stratis.BreezeD.exe');
// } else {
// apiPath = path.resolve(__dirname, '..//..//resources//daemon//Stratis.BreezeD.exe');
// }
// }
if
(
!
testnet
)
{
if
(
!
testnet
)
{
...
...
This diff is collapsed.
Click to expand it.
build.sh
View file @
a471f922
...
@@ -42,22 +42,26 @@ git submodule update --init --recursive
...
@@ -42,22 +42,26 @@ git submodule update --init --recursive
cd
$TRAVIS_BUILD_DIR
/Breeze.UI
cd
$TRAVIS_BUILD_DIR
/Breeze.UI
npm
install
npm
install
npm
install
-g
npx
echo
$log_prefix
FINISHED restoring dotnet and npm packages
echo
$log_prefix
FINISHED restoring dotnet and npm packages
# dotnet publish
# dotnet publish
echo
$log_prefix
running
'dotnet publish'
echo
$log_prefix
running
'dotnet publish'
cd
$TRAVIS_BUILD_DIR
/StratisBitcoinFullNode/Stratis.BreezeD
cd
$TRAVIS_BUILD_DIR
/StratisBitcoinFullNode/Stratis.BreezeD
dotnet publish
-c
$configuration
-r
$TRAVIS_OS_NAME
-
$arch
-v
m
-o
$TRAVIS_BUILD_DIR
/
dotnet_out/
$TRAVIS_OS_NAME
dotnet publish
-c
$configuration
-r
$TRAVIS_OS_NAME
-
$arch
-v
m
-o
$TRAVIS_BUILD_DIR
/
Breeze.UI/daemon
echo
$log_prefix
chmoding the Stratis.BreezeD file
echo
$log_prefix
chmoding the Stratis.BreezeD file
chmod
+x
$TRAVIS_BUILD_DIR
/
dotnet_out/
$TRAVIS_OS_NAME
/Stratis.BreezeD
chmod
+x
$TRAVIS_BUILD_DIR
/
Breeze.UI/daemon
/Stratis.BreezeD
# node Build
# node Build
cd
$TRAVIS_BUILD_DIR
/Breeze.UI
cd
$TRAVIS_BUILD_DIR
/Breeze.UI
echo
$log_prefix
running
'npm run'
echo
$log_prefix
running
'npm run'
npm run build:prod
npm run build:prod
# node packaging
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
then
# node packaging
echo
$log_prefix
packaging breeze
echo
$log_prefix
packaging breeze
node package.js
--platform
=
$os_platform
--arch
=
$arch
--path
=
$TRAVIS_BUILD_DIR
/breeze_out
node package.js
--platform
=
$os_platform
--arch
=
$arch
--path
=
$TRAVIS_BUILD_DIR
/breeze_out
...
@@ -68,7 +72,7 @@ mv $TRAVIS_BUILD_DIR/breeze_out/$node_output_name $TRAVIS_BUILD_DIR/breeze_out/$
...
@@ -68,7 +72,7 @@ mv $TRAVIS_BUILD_DIR/breeze_out/$node_output_name $TRAVIS_BUILD_DIR/breeze_out/$
# copy api libs into app
# copy api libs into app
echo
$log_prefix
copying the Breeze api into the app
echo
$log_prefix
copying the Breeze api into the app
mkdir
-p
$dotnet_resources_path_in_app
mkdir
-p
$dotnet_resources_path_in_app
cp
-r
$TRAVIS_BUILD_DIR
/
dotnet_out/
$TRAVIS_OS_NAME
/
*
$dotnet_resources_path_in_app
cp
-r
$TRAVIS_BUILD_DIR
/
Breeze.UI/daemon
/
*
$dotnet_resources_path_in_app
# zip result
# zip result
echo
$log_prefix
zipping the app into
$TRAVIS_BUILD_DIR
/breeze_out/
$app_output_zip_name
echo
$log_prefix
zipping the app into
$TRAVIS_BUILD_DIR
/breeze_out/
$app_output_zip_name
...
@@ -76,6 +80,14 @@ mkdir -p $TRAVIS_BUILD_DIR/deploy/
...
@@ -76,6 +80,14 @@ mkdir -p $TRAVIS_BUILD_DIR/deploy/
cd
$TRAVIS_BUILD_DIR
/breeze_out
cd
$TRAVIS_BUILD_DIR
/breeze_out
zip
-r
$TRAVIS_BUILD_DIR
/deploy/
$app_output_zip_name
$app_output_name
/
*
zip
-r
$TRAVIS_BUILD_DIR
/deploy/
$app_output_zip_name
$app_output_name
/
*
else
# node packaging
echo
$log_prefix
packaging breeze
npx electron-builder build
--
$TRAVIS_OS_NAME
--
$arch
echo
$log_prefix
finished packaging
fi
#tests
#tests
echo
$log_prefix
no tests to run
echo
$log_prefix
no tests to run
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment