Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
7e93458b
Commit
7e93458b
authored
Jul 29, 2016
by
Jisi Liu
Committed by
GitHub
Jul 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1888 from pherl/fixbuildzip
Fix the build-zip.sh to add .exe for win packages.
parents
de30c563
6a59ac94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
build-zip.sh
protoc-artifacts/build-zip.sh
+8
-2
No files found.
protoc-artifacts/build-zip.sh
View file @
7e93458b
...
...
@@ -82,21 +82,27 @@ mkdir -p ${DIR}/bin
# Create a zip file for each binary.
for
((
i
=
0
;
i<
${#
FILE_NAMES
[@]
}
;
i+
=
2
))
;
do
ZIP_NAME
=
${
FILE_NAMES
[
$i
]
}
if
[
${
ZIP_NAME
:0:3
}
=
"win"
]
;
then
BINARY
=
"
$TARGET
.exe"
else
BINARY
=
"
$TARGET
"
fi
BINARY_NAME
=
${
FILE_NAMES
[
$((
$i
+
1
))
]
}
BINARY_URL
=
http://repo1.maven.org/maven2/com/google/protobuf/
$TARGET
/
${
VERSION_NUMBER
}
/
$TARGET
-
${
VERSION_NUMBER
}
-
${
BINARY_NAME
}
if
!
wget
${
BINARY_URL
}
-O
${
DIR
}
/bin/
$
TARGET
&> /dev/null
;
then
if
!
wget
${
BINARY_URL
}
-O
${
DIR
}
/bin/
$
BINARY
&> /dev/null
;
then
echo
"[ERROR] Failed to download
${
BINARY_URL
}
"
>
&2
echo
"[ERROR] Skipped
$TARGET
-
${
VERSION_NAME
}
-
${
ZIP_NAME
}
"
>
&2
continue
fi
TARGET_ZIP_FILE
=
`
pwd
`
/dist/
$TARGET
-
${
VERSION_NUMBER
}
-
${
ZIP_NAME
}
pushd
$DIR
&> /dev/null
chmod
+x bin/
$
TARGET
chmod
+x bin/
$
BINARY
if
[
"
$TARGET
"
=
"protoc"
]
;
then
zip
-r
${
TARGET_ZIP_FILE
}
include bin readme.txt &> /dev/null
else
zip
-r
${
TARGET_ZIP_FILE
}
bin &> /dev/null
fi
rm
bin/
$BINARY
popd
&> /dev/null
echo
"[INFO] Successfully created
${
TARGET_ZIP_FILE
}
"
done
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