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
bccab88b
Commit
bccab88b
authored
7 years ago
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added scripts to build packages locally
parent
bd4c9604
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
0 deletions
+139
-0
.gitignore
.gitignore
+3
-0
build-win-x64-package.ps1
Scripts/build-win-x64-package.ps1
+68
-0
build-win-x86-package.ps1
Scripts/build-win-x86-package.ps1
+68
-0
No files found.
.gitignore
View file @
bccab88b
...
@@ -294,3 +294,6 @@ project.lock.json
...
@@ -294,3 +294,6 @@ project.lock.json
/Breeze/src/Breeze.Daemon/Logs
/Breeze/src/Breeze.Daemon/Logs
/Breeze.UI/.vscode/.BROWSE.VC.DB-wal
/Breeze.UI/.vscode/.BROWSE.VC.DB-wal
/Breeze.UI/.vscode/.BROWSE.VC.DB-shm
/Breeze.UI/.vscode/.BROWSE.VC.DB-shm
/Breeze.UI/daemon
/Breeze.UI/app-builds
/Breeze.UI/dist
This diff is collapsed.
Click to expand it.
Scripts/build-win-x64-package.ps1
0 → 100644
View file @
bccab88b
# 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
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
)
}
This diff is collapsed.
Click to expand it.
Scripts/build-win-x86-package.ps1
0 → 100644
View file @
bccab88b
# 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
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
)
}
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