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
2c9649b7
Unverified
Commit
2c9649b7
authored
Dec 08, 2017
by
Jeremy Bokobza
Committed by
GitHub
Dec 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #381 from bokobza/master
Local build scripts
parents
fa4f52cc
d1684095
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
148 additions
and
0 deletions
+148
-0
.gitignore
.gitignore
+3
-0
build-win-x64-package.ps1
Scripts/build-win-x64-package.ps1
+70
-0
build-win-x86-package.ps1
Scripts/build-win-x86-package.ps1
+70
-0
appveyor.yml
appveyor.yml
+2
-0
build.sh
build.sh
+3
-0
No files found.
.gitignore
View file @
2c9649b7
...
...
@@ -294,3 +294,6 @@ project.lock.json
/Breeze/src/Breeze.Daemon/Logs
/Breeze.UI/.vscode/.BROWSE.VC.DB-wal
/Breeze.UI/.vscode/.BROWSE.VC.DB-shm
/Breeze.UI/daemon
/Breeze.UI/app-builds
/Breeze.UI/dist
Scripts/build-win-x64-package.ps1
0 → 100644
View file @
2c9649b7
# This file should be kept in sync with the appveyor.yml file.
# If run successfully to completion, it will
# 1. install dotnet dependencies
# 2. build the dotnet daemon
# 3. install node dependencies
# 4. build the electron app
# 5. start the app
$env
:current_folder
=
$PSScriptRoot
$env
:APPVEYOR_BUILD_FOLDER
=
$env
:current_folder +
"\.."
$env
:win_runtime
=
"win-x64"
# win-x32
$env
:configuration
=
"Release"
# Debug
$env
:arch
=
"x64"
# ia32
$env
:plat
=
"win32"
$env
:app_output_name
=
"app"
cd
$env
:APPVEYOR_BUILD_FOLDER
dir
Write-Host
"Installing dependencies"
-foregroundcolor
"magenta"
Write-Host
"--> git submodule"
-foregroundcolor
"magenta"
git submodule update --init --recursive
Write-Host
"--> npm install"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm
install
--verbose
Write-Host
"--> npm install npx"
-foregroundcolor
"magenta"
npm
install
npx --verbose
Write-Host
"FINISHED restoring dotnet and npm packages"
-foregroundcolor
"magenta"
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
#---------------------------------#
# build configuration #
#---------------------------------#
Write-Host
"*--------------------------------*"
-foregroundcolor
"magenta"
Write-Host
"current environment variables:"
-foregroundcolor
"magenta"
Write-Host
"Windows runtime:
$env
:win_runtime"
-foregroundcolor
"magenta"
Write-Host
"Build directory:
$env
:APPVEYOR_BUILD_FOLDER"
-foregroundcolor
"magenta"
Write-Host
"Configuration:
$env
:configuration"
-foregroundcolor
"magenta"
Write-Host
"*--------------------------------*"
-foregroundcolor
"magenta"
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"running 'dotnet publish'"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/StratisBitcoinFullNode/Stratis.BreezeD
dotnet publish -c
$env
:configuration -v m -r
$env
:win_runtime -o
$env
:APPVEYOR_BUILD_FOLDER\Breeze.UI\daemon
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"building Breeze"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm run build:prod
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"packaging breeze"
-foregroundcolor
"magenta"
npx electron-builder build --windows --
$env
:arch
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"[
$env
:configuration][
$env
:win_runtime] FINISHED Breeze packaging"
-foregroundcolor
"magenta"
dir
cd
app-builds
# replace the spaces in the name with a dot as CI system have trouble handling spaces in names.
Dir
*
.exe |
rename-item
-newname
{
$_
.name -replace
" "
,
"."
}
dir
Write-Host
"[
$env
:configuration][
$env
:win_runtime] Done! Your installer is:"
-foregroundcolor
"green"
Get-ChildItem
-Path
"*.exe"
|
foreach
-object
{
$_
.Fullname
}
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Scripts/build-win-x86-package.ps1
0 → 100644
View file @
2c9649b7
# This file should be kept in sync with the appveyor.yml file.
# If run successfully to completion, it will
# 1. install dotnet dependencies
# 2. build the dotnet daemon
# 3. install node dependencies
# 4. build the electron app
# 5. start the app
$env
:current_folder
=
$PSScriptRoot
$env
:APPVEYOR_BUILD_FOLDER
=
$env
:current_folder +
"\.."
$env
:win_runtime
=
"win-x86"
# win-x64
$env
:configuration
=
"Release"
# Debug
$env
:arch
=
"ia32"
# x64
$env
:plat
=
"win32"
$env
:app_output_name
=
"app"
cd
$env
:APPVEYOR_BUILD_FOLDER
dir
Write-Host
"Installing dependencies"
-foregroundcolor
"magenta"
Write-Host
"--> git submodule"
-foregroundcolor
"magenta"
git submodule update --init --recursive
Write-Host
"--> npm install"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm
install
--verbose
Write-Host
"--> npm install npx"
-foregroundcolor
"magenta"
npm
install
npx --verbose
Write-Host
"FINISHED restoring dotnet and npm packages"
-foregroundcolor
"magenta"
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
#---------------------------------#
# build configuration #
#---------------------------------#
Write-Host
"*--------------------------------*"
-foregroundcolor
"magenta"
Write-Host
"current environment variables:"
-foregroundcolor
"magenta"
Write-Host
"Windows runtime:
$env
:win_runtime"
-foregroundcolor
"magenta"
Write-Host
"Build directory:
$env
:APPVEYOR_BUILD_FOLDER"
-foregroundcolor
"magenta"
Write-Host
"Configuration:
$env
:configuration"
-foregroundcolor
"magenta"
Write-Host
"*--------------------------------*"
-foregroundcolor
"magenta"
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"running 'dotnet publish'"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/StratisBitcoinFullNode/Stratis.BreezeD
dotnet publish -c
$env
:configuration -v m -r
$env
:win_runtime -o
$env
:APPVEYOR_BUILD_FOLDER\Breeze.UI\daemon
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"building Breeze"
-foregroundcolor
"magenta"
cd
$env
:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm run build:prod
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"packaging breeze"
-foregroundcolor
"magenta"
npx electron-builder build --windows --
$env
:arch
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
Write-Host
"[
$env
:configuration][
$env
:win_runtime] FINISHED Breeze packaging"
-foregroundcolor
"magenta"
dir
cd
app-builds
# replace the spaces in the name with a dot as CI system have trouble handling spaces in names.
Dir
*
.exe |
rename-item
-newname
{
$_
.name -replace
" "
,
"."
}
dir
Write-Host
"[
$env
:configuration][
$env
:win_runtime] Done! Your installer is:"
-foregroundcolor
"green"
Get-ChildItem
-Path
"*.exe"
|
foreach
-object
{
$_
.Fullname
}
if
(
$LastExitCode
-ne 0
)
{
$host
.SetShouldExit
(
$LastExitCode
)
}
appveyor.yml
View file @
2c9649b7
...
...
@@ -105,6 +105,8 @@ build_script:
dir
cd app-builds
# replace the spaces in the name with a dot as CI system have trouble handling spaces in names.
Dir *.exe | rename-item -newname { $_.name -replace " ","." }
dir
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
...
...
build.sh
View file @
2c9649b7
...
...
@@ -78,6 +78,9 @@ ls
echo
$log_prefix
contents of the app-builds folder
cd
$TRAVIS_BUILD_DIR
/Breeze.UI/app-builds/
# replace the spaces in the name with a dot as CI system have trouble handling spaces in names.
for
file
in
*
.
{
dmg,tar.gz,deb
}
;
do
mv
"
$file
"
`
echo
$file
|
tr
' '
'.'
`
2>/dev/null
||
:
;
done
ls
echo
$log_prefix
FINISHED build
...
...
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