Commit cc9a5aed authored by Oskar Skog's avatar Oskar Skog

Pre 0.5.5: Removed sillyness from desktop/icon.icns.py

parent c11f485d
......@@ -15,7 +15,7 @@
NAME := anonymine
NAME_C := Anonymine
DESCRIPTION = Minesweeper without guessing
VERSION := 0.5.4
VERSION := pre-0.5.5
# Four more variables are required: sysconfdir, vargamesdir, EXECUTABLES and
# MODULES
......
......@@ -37,24 +37,29 @@ PNGs = [
data = bytes()
def noynoynoy():
def infomsg():
data = bytes()
msg = '\n\n\nJåo nåo e ja jåo YOLO ja nåo!\n\n\n'
msg = '''\0\0\0\0\0\0\0\0\n
Copyright (C) 2016-2018 Oskar Skog, released under Creative Commons Attribution
CC-BY 4.0
Created by custom script, contains
16x16, 32x32, 64x64 as PNGs as well as 256x256 as PNG
\n\0\0\0\0'''
if sys.version_info[0] == 3:
msg = msg.encode('utf-8')
# file(1) may echo the first type it sees.
data += 'PNGs'.encode('us-ascii')
data += 'info'.encode('us-ascii')
data += be32(len(msg) + 8)
data += msg
return data
data += noynoynoy()
data += infomsg()
for PNG in PNGs:
new_file = open(basename + PNG[1], 'rb').read()
data += PNG[0].encode('us-ascii')
data += be32(len(new_file) + 8)
data += new_file
data += noynoynoy()
f = open(outfile, 'wb')
f.write('icns'.encode('us-ascii'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment