Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flatdeb-steam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
steamrt
flatdeb-steam
Commits
d3eb3083
Commit
d3eb3083
authored
7 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
Fold preparation stage into deb-buildapi and make it work better
parent
82966be1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
deb-buildapi/Makefile
+8
-6
8 additions, 6 deletions
deb-buildapi/Makefile
org.debian.packages.hello.yaml
+0
-9
0 additions, 9 deletions
org.debian.packages.hello.yaml
prepare/configure
+0
-17
0 additions, 17 deletions
prepare/configure
prepare/unconfigure
+0
-15
0 additions, 15 deletions
prepare/unconfigure
with
8 additions
and
47 deletions
deb-buildapi/Makefile
+
8
−
6
View file @
d3eb3083
all
:
if
!
[
-d
/var/lib/dpkg
]
;
then
\
cp
-a
/usr/var /
;
\
fi
set
-e
;
\
if
test
-d
src
;
then
\
cd
src
&&
\
dpkg-buildpackage
-b
-nc
\
dpkg-buildpackage
-b
-nc
-d
\
--build-profiles
=
pkg.flatpak.app,nocheck,nodoc
;
\
fi
;
\
done
...
...
@@ -10,8 +13,7 @@ all:
# This assumes we don't need to run maintainer scripts.
install
:
set
-e
;
\
PATH
=
/usr/sbin:
$$
PATH
\
fakeroot
\
dpkg
--root
=
/app
--unpack
--force-script-chrootless
--no-triggers
\
*
.deb
\
$(
NULL
)
for
deb
in
*
.deb
;
do
\
dpkg-deb
--fsys-tarfile
"
$$
deb"
|
\
tar
-xf-
-C
/app
--transform
=
's,([.]/)?(app|usr)/,,x'
;
\
done
This diff is collapsed.
Click to expand it.
org.debian.packages.hello.yaml
+
0
−
9
View file @
d3eb3083
...
...
@@ -7,10 +7,6 @@ sdk: net.debian.flatpak.Base.Sdk
command
:
hello
writable-sdk
:
true
modules
:
-
name
:
prepare
sources
:
-
type
:
file
path
:
prepare/configure
-
name
:
hello
x-flatdeb-apt-packages
:
-
hello
...
...
@@ -20,9 +16,4 @@ modules:
dest
:
'
.'
-
type
:
file
path
:
deb-buildapi/Makefile
-
name
:
unprepare
sources
:
-
type
:
file
path
:
prepare/unconfigure
dest-filename
:
configure
...
This diff is collapsed.
Click to expand it.
prepare/configure
deleted
100755 → 0
+
0
−
17
View file @
82966be1
#!/bin/sh
set
-eu
ln
-s
.
/app/app
ln
-s
.
/app/usr
ln
-s
/var /app/var
cp
-a
/usr/var /
install
-d
/var/cache/apt/archives/partial
# We don't use the Makefile
cat
>
Makefile
<<
END
all:
:
install:
:
END
This diff is collapsed.
Click to expand it.
prepare/unconfigure
deleted
100755 → 0
+
0
−
15
View file @
82966be1
#!/bin/sh
set
-eu
rm
/app/app
rm
/app/usr
rm
/app/var
# We don't use the Makefile
cat
>
Makefile
<<
END
all:
:
install:
:
END
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