Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Zabka
Companion App Android
Commits
568843d6
Commit
568843d6
authored
Aug 22, 2019
by
Anon
Browse files
AppDetailFragment: Fix file paths.
parent
0374d7a1
Changes
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/de/ccc/events/badge/card10/hatchery/AppDetailFragment.kt
View file @
568843d6
...
...
@@ -117,7 +117,7 @@ class AppDetailFragment : Fragment() {
targetFile
.
createNewFile
()
Log
.
d
(
TAG
,
"Extracting ${entry.name} to ${targetFile.absolutePath}"
)
tarStream
.
copyTo
(
targetFile
.
outputStream
())
appFiles
.
add
(
TransferJob
(
targetFile
.
toUri
(),
"apps/${entry.name}"
))
appFiles
.
add
(
TransferJob
(
targetFile
.
toUri
(),
"
/
apps/${entry.name}"
))
}
val
launcher
=
createLauncher
(
app
.
slug
,
cacheDir
)
...
...
@@ -157,12 +157,12 @@ class AppDetailFragment : Fragment() {
val
src
=
"""
# Launcher script for $slug
import os
os.exec("apps/$slug/__init__.py")
os.exec("
/
apps/$slug/__init__.py")
"""
.
trimIndent
()
file
.
writeText
(
src
)
return
TransferJob
(
file
.
toUri
(),
fileName
)
return
TransferJob
(
file
.
toUri
(),
"/$
fileName
"
)
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment