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
9fa39a97
Commit
9fa39a97
authored
4 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
add relative meta and gui dir
parent
f004a118
No related branches found
Branches containing commit
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
+4
-2
4 additions, 2 deletions
linux/snap.gitlab-ci.yml
with
4 additions
and
2 deletions
linux/snap.gitlab-ci.yml
+
4
−
2
View file @
9fa39a97
...
...
@@ -41,11 +41,13 @@ 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}" != "" ]
...
...
@@ -53,7 +55,7 @@ variables:
sed -i "s|\${NAME}|${APP_NAME}|" ${SNAP_DESKTOP_FILE}
sed -i "s/\${COMMENT}/${APP_SUMMARY}/" ${SNAP_DESKTOP_FILE}
sed -i "s/\${COMMAND}/${APP_NAME}/" ${SNAP_DESKTOP_FILE}
sed -i "s|\${GUI_DIR}|\${SNAP}/${GUI_DIR}|" ${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