Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ci-templates
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andri Joos
ci-templates
Commits
1d0e1761
Commit
1d0e1761
authored
4 months ago
by
Andri Joos
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_snap'
parents
1d4c9f73
9fa39a97
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux/snap.gitlab-ci.yml
+6
-4
6 additions, 4 deletions
linux/snap.gitlab-ci.yml
with
6 additions
and
4 deletions
linux/snap.gitlab-ci.yml
+
6
−
4
View file @
1d0e1761
...
...
@@ -41,19 +41,21 @@ variables:
sed -i "s/\${GRADE}/${SNAP_GRADE}/" ${SNAP_CONFIG}
sed -i "s/\${COMMAND}/${SNAP_COMMAND}/" ${SNAP_CONFIG}
META_DIR="${BUILD_DIR}/meta"
META_RELATIVE_DIR="meta"
META_DIR="${BUILD_DIR}/${META_RELATIVE_DIR}"
mkdir -p "${META_DIR}"
cp -r ${APP_DIR}/* ${BUILD_DIR}
cp "${SNAP_CONFIG}" "${META_DIR}/snap.yaml"
GUI_RELATIVE_DIR="${META_RELATIVE_DIR}/gui"
GUI_DIR="${META_DIR}/gui"
mkdir -p "${GUI_DIR}"
if [ "${SNAP_DESKTOP_FILE}" != "" ]
then
sed -i "s|\${NAME}|${APP_NAME}
/${GUI_DIR}
|" ${SNAP_DESKTOP_FILE}
sed -i "s|\${NAME}|${APP_NAME}|" ${SNAP_DESKTOP_FILE}
sed -i "s/\${COMMENT}/${APP_SUMMARY}/" ${SNAP_DESKTOP_FILE}
sed -i "s/\${COMMAND}/${
SNAP_COMMAND
}/" ${SNAP_DESKTOP_FILE}
sed -i "s|\${GUI_DIR}|\${SNAP}/${GUI_DIR}|" ${SNAP_DESKTOP_FILE}
sed -i "s/\${COMMAND}/${
APP_NAME
}/" ${SNAP_DESKTOP_FILE}
sed -i "s|\${GUI_DIR}|\${SNAP}/${GUI_
RELATIVE_
DIR}|" ${SNAP_DESKTOP_FILE}
cp "${SNAP_DESKTOP_FILE}" "${GUI_DIR}/${APP_NAME}.desktop"
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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