Skip to content

Commit eb8283c

Browse files
committed
fix issue caused by old macOS adding hidden metadata files into the unzipped pdx
1 parent 0d817bf commit eb8283c

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

Source/noteFs.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ function noteFs:getNoteCredits(filepath)
216216
return name, links
217217
end
218218

219+
function noteFs:isValidPpmFilename(s)
220+
return string.sub(s, -4) == '.ppm' and string.sub(s, 1, 2) ~= '._'
221+
end
222+
219223
function noteFs:setWorkingFolder(folderPath)
220224
if folderPath == '/samplememo' and not fs.isdir(folderPath) then
221225
fs.mkdir(folderPath)
@@ -230,9 +234,9 @@ function noteFs:setWorkingFolder(folderPath)
230234
self.workingFolder = folderPath
231235
noteList = {}
232236
local list = fs.listFiles(folderPath)
233-
for _, name in pairs(list) do
234-
if string.sub(name, -3) == 'ppm' then
235-
table.insert(noteList, folderPath .. name)
237+
for _, filename in pairs(list) do
238+
if noteFs:isValidPpmFilename(filename) then
239+
table.insert(noteList, folderPath .. filename)
236240
end
237241
end
238242
numNotes = #noteList

Source/pdxinfo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name=Playnote Studio
22
author=James Daniel
33
description=Flipnote Studio animation player for the Playdate
44
bundleID=com.jaames.playnote
5-
version=1.0
6-
buildNumber=1
5+
version=1.0.1
6+
buildNumber=2
77
imagePath=gfx/launcher

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ if [ $CMD == "build" ]; then
6363
find ./${GAME} -name "*.dll" -type f -delete
6464
# cleapup empty directories
6565
find ./${GAME} -empty -type d -delete
66+
# cleanup macOS extended attribute files
67+
find . -type f -name '._*' -delete
6668
# zip result, skipping pesky DS_Store files
69+
rm ./${GAME}.zip
6770
zip -vr ./${GAME}.zip ./${GAME}/ -x "*.DS_Store"
6871
fi
6972

website/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { Icon } from 'astro-icon';
4141
<div class="DownloadCard__head">
4242
<div class="DownloadCard__info">
4343
<h3 class="DownloadCard__title">playnote.pdx</h3>
44-
<div class="DownloadCard__stat">Version 1.0</div>
44+
<div class="DownloadCard__stat">Version 1.0.1</div>
4545
<div class="DownloadCard__stat">17.5 MB</div>
4646
</div>
4747
<div class="DownloadCard__buttons">

0 commit comments

Comments
 (0)