Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
e4fbe2c8
Unverified
Commit
e4fbe2c8
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[fix] releases build : only build window & arm assets and not uploaded into github
parent
fc7428f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/new_prerelease.sh
+2
-6
2 additions, 6 deletions
release/new_prerelease.sh
with
2 additions
and
6 deletions
release/new_prerelease.sh
+
2
−
6
View file @
e4fbe2c8
#!/bin/bash
#!/bin/bash
TAG
=
"v
$1
"
TAG
=
"v
$1
"
TOKEN
=
`
cat
$HOME
/.config/duniter/.github
`
ARCH
=
`
uname
-m
`
ARCH
=
`
uname
-m
`
# Check that the tag exists remotely
# Check that the tag exists remotely
...
@@ -31,7 +30,6 @@ fi
...
@@ -31,7 +30,6 @@ fi
echo
"Remote tag:
$REMOTE_TAG
"
echo
"Remote tag:
$REMOTE_TAG
"
echo
"Creating the pre-release..."
echo
"Creating the pre-release..."
ASSETS
=
`
node ./release/scripts/create-release.js
$TOKEN
$TAG
create
`
EXPECTED_ASSETS
=
"duniter-desktop-
$TAG
-windows-x64.exe
EXPECTED_ASSETS
=
"duniter-desktop-
$TAG
-windows-x64.exe
duniter-server-
$TAG
-linux-armv7l.deb"
duniter-server-
$TAG
-linux-armv7l.deb"
for
asset
in
$EXPECTED_ASSETS
;
do
for
asset
in
$EXPECTED_ASSETS
;
do
...
@@ -44,8 +42,7 @@ for asset in $EXPECTED_ASSETS; do
...
@@ -44,8 +42,7 @@ for asset in $EXPECTED_ASSETS; do
if
[[
$ARCH
==
"x86_64"
]]
;
then
if
[[
$ARCH
==
"x86_64"
]]
;
then
echo
"Starting Windows build..."
echo
"Starting Windows build..."
./release/scripts/build.sh make win
$TAG
./release/scripts/build.sh make win
$TAG
WIN_PATH
=
"
$PWD
/release/arch/windows/
$asset
"
echo
"Windows asset has been successfully built, it is available here :
$PWD
/release/arch/windows/
$asset
"
node ./release/scripts/upload-release.js
$TOKEN
$TAG
$WIN_PATH
else
else
echo
"This computer cannot build this asset, required architecture is 'x86_64'. Skipping."
echo
"This computer cannot build this asset, required architecture is 'x86_64'. Skipping."
fi
fi
...
@@ -56,8 +53,7 @@ for asset in $EXPECTED_ASSETS; do
...
@@ -56,8 +53,7 @@ for asset in $EXPECTED_ASSETS; do
if
[[
$ARCH
==
"armv7l"
]]
;
then
if
[[
$ARCH
==
"armv7l"
]]
;
then
echo
"Starting ARM build..."
echo
"Starting ARM build..."
./release/scripts/build.sh make arm
$TAG
./release/scripts/build.sh make arm
$TAG
ARM_PATH
=
"
$PWD
/release/arch/arm/
$asset
"
echo
"Arm asset has been successfully built, it is available here :
$PWD
/release/arch/arm/
$asset
"
node ./release/scripts/upload-release.js
$TOKEN
$TAG
$ARM_PATH
else
else
echo
"This computer cannot build this asset, required architecture is 'armv7l'. Skipping."
echo
"This computer cannot build this asset, required architecture is 'armv7l'. Skipping."
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment