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
d5ea2bab
Commit
d5ea2bab
authored
4 years ago
by
Francesco Abbate
Browse files
Options
Downloads
Patches
Plain Diff
Add script to build release package
parent
0645ecec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-package-meson.sh
+52
-0
52 additions, 0 deletions
build-package-meson.sh
with
52 additions
and
0 deletions
build-package-meson.sh
0 → 100755
+
52
−
0
View file @
d5ea2bab
#!/bin/bash
lite_build_pgo
()
{
build
=
"
$1
"
if
[[
$build
==
*
/
*
||
-z
"
$build
"
]]
;
then
echo
"invalid build directory, no path allowed:
\"
$build
\"
"
exit
1
fi
git ls-files
--error-unmatch
"
$build
"
&> /dev/null
if
[
$?
==
0
]
;
then
echo
"invalid path,
\"
$build
\"
is under revision control"
exit
1
fi
rm
-fr
"
$build
"
meson setup
--buildtype
=
release
-Db_pgo
=
generate
"
$build
"
||
exit
1
ninja
-C
"
$build
"
||
exit
1
cp
-r
data
"
$build
/src"
"
$build
/src/lite"
meson configure
-Db_pgo
=
use
"
$build
"
ninja
-C
"
$build
"
||
exit
1
}
lite_build_package
()
{
build
=
"
$1
"
version
=
"
$2
"
arch
=
"
$3
"
local
pdir
=
".package-build/lite-xl-
$version
"
mkdir
-p
"
$pdir
"
cp
-r
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
"
mv
"
$package_name
"
..
popd
rm
-fr
".package-build"
echo
"created package
$package_name
"
}
if
[[
-z
"
$1
"
||
-z
"
$2
"
]]
;
then
echo
"usage:
$0
<version> <arch>"
exit
1
fi
version
=
"
$1
"
arch
=
"
$2
"
build_dir
=
".build-
$arch
"
lite_build_pgo
"
$build_dir
"
lite_build_package
"
$build_dir
"
"
$version
"
"
$arch
"
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