You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(repro): reorder postbuild steps to match F-Droid
Order must be: remove files -> fix-pg-map-id (with zipalign) -> sign
Previous order broke zipalign by running file removal after fix-pg-map-id
— opus-4.5
python3 -c "import zipfile,sys,tempfile,shutil;a=sys.argv[1];t=tempfile.mktemp('.apk');z=zipfile.ZipFile(a);o=zipfile.ZipFile(t,'w');[o.writestr(i,z.read(i.filename))for i in z.infolist()if not(i.filename.startswith('META-INF/com/')or i.filename.startswith('META-INF/services/'))];z.close();o.close();shutil.move(t,a)" "$apk"
# REPRODUCIBILITY: Delete non-deterministic files that excludes didn't catch
164
-
# Uses Python zipfile to match F-Droid postbuild (which doesn't have zip command)
165
-
- name: Remove non-deterministic metadata
166
-
run: |
167
-
cd build/outputs/apk/release
168
-
for apk in *.apk; do
169
-
echo "Removing metadata from $apk..."
170
-
python3 -c "import zipfile,sys,tempfile,shutil;a=sys.argv[1];t=tempfile.mktemp('.apk');z=zipfile.ZipFile(a);o=zipfile.ZipFile(t,'w');[o.writestr(i,z.read(i.filename))for i in z.infolist()if not(i.filename.startswith('META-INF/com/')or i.filename.startswith('META-INF/services/'))];z.close();o.close();shutil.move(t,a)" "$apk"
0 commit comments