Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lite XL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andy Nichols
Lite XL
Commits
b484cb8b
Commit
b484cb8b
authored
4 years ago
by
Francesco Abbate
Browse files
Options
Downloads
Patches
Plain Diff
Ensure build-package script copy data directory from repository's head
Rename also the directory of the package with the arch name.
parent
0ad3353f
No related branches found
Branches containing commit
Tags
v1.10-lite-xl
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-packages.sh
+14
-8
14 additions, 8 deletions
build-packages.sh
with
14 additions
and
8 deletions
build-packages.sh
+
14
−
8
View file @
b484cb8b
#!/bin/bash
copy_directory_from_repo
()
{
local dirname
=
"
$1
"
local
destdir
=
"
$2
"
git
--work-tree
=
"
$destdir
"
checkout HEAD
-f
--
"
$dirname
"
}
# Check if build directory is ok to be used to build.
build_dir_is_usable
()
{
local
build
=
"
$1
"
...
...
@@ -30,7 +36,7 @@ lite_build_pgo () {
rm
-fr
"
$build
"
meson setup
--buildtype
=
release
-Db_pgo
=
generate
"
$build
"
||
exit
1
ninja
-C
"
$build
"
||
exit
1
c
p
-r
data
"
$build
/src"
c
opy_directory_from_repo
data
"
$build
/src"
"
$build
/src/lite"
meson configure
-Db_pgo
=
use
"
$build
"
ninja
-C
"
$build
"
||
exit
1
...
...
@@ -40,14 +46,14 @@ lite_build_package_windows () {
build
=
"
$1
"
version
=
"
$2
"
arch
=
"
$3
"
local
pdir
=
".package-build/lite-xl-
$version
"
local
pdir
=
".package-build/lite-xl-
$version
-
$arch
"
mkdir
-p
"
$pdir
"
c
p
-r
data
"
$pdir
"
c
opy_directory_from_repo
data
"
$pdir
"
cp
"
$build
/src/lite.exe"
"
$pdir
"
strip
--strip-all
"
$pdir
/lite.exe"
pushd
".package-build"
local
package_name
=
"lite-xl-
$version
-
$arch
.zip"
zip
"
$package_name
"
-r
"lite-xl-
$version
"
zip
"
$package_name
"
-r
"lite-xl-
$version
-
$arch
"
mv
"
$package_name
"
..
popd
rm
-fr
".package-build"
...
...
@@ -60,7 +66,7 @@ lite_build_package_macosx () {
arch
=
"
$3
"
local
pdir
=
".package-build/lite-xl.app/Contents/MacOS"
mkdir
-p
"
$pdir
"
c
p
-R
data
"
$pdir
"
c
opy_directory_from_repo
data
"
$pdir
"
cp
"
$build
/src/lite"
"
$pdir
"
strip
"
$pdir
/lite"
pushd
".package-build"
...
...
@@ -76,14 +82,14 @@ lite_build_package_linux () {
build
=
"
$1
"
version
=
"
$2
"
arch
=
"
$3
"
local
pdir
=
".package-build/lite-xl-
$version
"
local
pdir
=
".package-build/lite-xl-
$version
-
$arch
"
mkdir
-p
"
$pdir
"
c
p
-r
data
"
$pdir
"
c
opy_directory_from_repo
data
"
$pdir
"
cp
"
$build
/src/lite"
"
$pdir
"
strip
"
$pdir
/lite"
pushd
".package-build"
local
package_name
=
"lite-xl-
$version
-
$arch
.tar.gz"
tar
czf
"
$package_name
"
"lite-xl-
$version
"
tar
czf
"
$package_name
"
"lite-xl-
$version
-
$arch
"
mv
"
$package_name
"
..
popd
rm
-fr
".package-build"
...
...
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