cryptopunks-gui 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 500d88447b105a1383d4de25cecaf39b5d805420edab28638b157a11e243422a
4
- data.tar.gz: 4af0fa654391c4208f330d221b39d7b5b8741d42464c1a57db0d4246a04c640e
3
+ metadata.gz: d2f736dec6d87a407c215776056a10f0c85fc26c847e67f42952f494c3d6729a
4
+ data.tar.gz: 16f48f9207cbfdb66ec804efb566d85438901ac836f9d6029d10b7aea2039ced
5
5
  SHA512:
6
- metadata.gz: 8f14974ea5229ad9bafea8dbbb15f9e874ccddd4107ba600ca5731fa2eb34b4a06742a7a3d5b25fc42cc1d1d9dcde264d1f592a2cbf150d88dfaae1d22bf74e9
7
- data.tar.gz: 8386c9af297624919012fc389925b968cb0d76c501b55407dc8be9c9c79cf6f11274b9792ffc8b965cd1ee205ef05fcb8a0a7160a9ecf0ef8a03bf13aa470fad
6
+ metadata.gz: 2d30b9e4506bfd1c41badfd467526013a2474b9a708215acb2a947423eaedbab312423b765622b3630257cc17f6eb8bda166c6fb12394230f8ba44d53fc14ca2
7
+ data.tar.gz: 9de36325f799f16dc00544aa7f67f407d993e10f9457cc5d9ac27de47605bceeb9ed7e35314a4acaee0afe3e9371ab73565dee03ffab1a1fc2b7fb63992ad53d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.11
4
+
5
+ - Support configuring default collections through a web hosted yaml file at: https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/cryptopunks-collections.yml
6
+ - New Green Punks, Clown Punks, and Bubble Gum Punks collections
7
+
3
8
  ## 0.0.10
4
9
 
5
10
  - Fix issue with cryptopunks GUI erroring when cancelling selection of a new output location (or getting blocked by OS for security reasons)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # <img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=85 /> CryptoPunks GUI 0.0.10
1
+ # <img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=85 /> CryptoPunks GUI 0.0.11
2
2
  ## Simplified Minting
3
3
  [![Gem Version](https://badge.fury.io/rb/cryptopunks-gui.svg)](http://badge.fury.io/rb/cryptopunks-gui)
4
4
 
@@ -10,10 +10,6 @@ Minted cryptopunks are stored at `~/cryptopunks/` by default ([output location c
10
10
 
11
11
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot.png)
12
12
 
13
- [<img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=40 /> Download DMG installer for Mac (Catalina x64 and older)](https://www.dropbox.com/s/gfh7e9osw30sjiq/CryptoPunks%20GUI.dmg?dl=1)
14
-
15
- If your machine is incompatible with the downloadable DMG package, you may follow [Packaging](#packaging) instructions to produce your own machine compatible installer.
16
-
17
13
  ## Prerequities
18
14
 
19
15
  - [Tcl/Tk (ActiveTcl)](https://tkdocs.com/tutorial/install.html)
@@ -29,7 +25,7 @@ You can use CryptoPunks GUI via gem or via cloning repository.
29
25
  Run:
30
26
 
31
27
  ```
32
- gem install cryptopunks-gui -v0.0.10
28
+ gem install cryptopunks-gui -v0.0.11
33
29
  ```
34
30
 
35
31
  Afterwards, run app via:
@@ -77,7 +73,13 @@ ruby app/cryptopunks_gui.rb
77
73
 
78
74
  Change collection to pick a different collection of images.
79
75
 
80
- There are currently 38 available collections (from https://github.com/cryptopunksnotdead/awesome-24px):
76
+ ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-zombies.png)
77
+
78
+ Image collections are configured in [cryptopunks-collections.yml](/cryptopunks-collections.yml).
79
+
80
+ If you cloned the project locally, you may edit [cryptopunks-collections.yml](/cryptopunks-collections.yml) to add/remove collections.
81
+
82
+ There are 41 available collections (mostly from https://github.com/cryptopunksnotdead/awesome-24px):
81
83
  - [Punks](https://raw.githubusercontent.com/larvalabs/cryptopunks/master/punks.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/punks-strip.png)
82
84
  - [Mohawks](https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/mohawks.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/mohawks-strip.png)
83
85
  - [Blondies](https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/blondies.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/blondies-strip.png)
@@ -85,6 +87,9 @@ There are currently 38 available collections (from https://github.com/cryptopunk
85
87
  - [Apes](https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/apes.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/apes-strip.png)
86
88
  - [Aliens](https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/aliens.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/aliens-strip.png)
87
89
  - [Golden Punks](https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/goldenpunks.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/goldenpunks-strip.png)
90
+ - [Green Punks](https://i.redd.it/uwrsn2lrr3o71.png)
91
+ - [Clown Punks](https://i.redd.it/ut0kk25heex71.png)
92
+ - [Bubble Gum Punks](https://i.redd.it/hjddd1s8ydx71.png)
88
93
  - [Halloween Punks](https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/halloweenpunks.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/halloweenpunks-strip.png)
89
94
  - [Scream Punks](https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/screampunks%402x.png)
90
95
  - [Jack 'O' Lantern Punks](https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/jackpunks%402x.png)
@@ -117,8 +122,6 @@ There are currently 38 available collections (from https://github.com/cryptopunk
117
122
  - [Punk Rocks](https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/punkrocks.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/punkrocks-strip.png)
118
123
  - [Tulips](https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/tulips.png) ![image examples](https://github.com/cryptopunksnotdead/awesome-24px/raw/master/i/tulips-strip.png)
119
124
 
120
- ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-zombies.png)
121
-
122
125
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-apes.png)
123
126
 
124
127
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-scream-punks.png)
@@ -211,45 +214,6 @@ You may select a new output location by clicking on the `...` button.
211
214
 
212
215
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-output-location.png)
213
216
 
214
- ## Packaging
215
-
216
- Assuming you have setup all prerequisites and cloned the project locally, you can package the project files, Ruby, gem dependencies, and ActiveTcl (Tcl/Tk) into fully self-contained native executable bundles for the Mac.
217
-
218
- ### Packaging Prerequisites
219
-
220
- Packaging is currently supported on Mac only.
221
-
222
- - [Platypus](https://github.com/sveinbjornt/Platypus): Install Platypus 5.3
223
- - [Platypus Command Line Tool](https://github.com/sveinbjornt/Platypus/blob/master/Documentation/Documentation.md#show-shell-command): Run Platypus GUI -> Go to Preferences -> Install Command Line Tool.
224
-
225
- Finally, ensure the `platypus` command is available in the terminal by simply running:
226
-
227
- ```
228
- platypus --version
229
- ```
230
-
231
- Output:
232
-
233
- ```
234
- platypus version 5.3
235
- ```
236
-
237
- ### Packaging Commands
238
-
239
- To package this app as both a Mac native executable (APP file) and a Mac native installer (DMG file), run this command (produces packages under `~/Applications`):
240
-
241
- ```
242
- bin/package-mac
243
- ```
244
-
245
- To package a Mac native executable only (quicker for local APP use without distribution), run:
246
-
247
- ```
248
- bin/package-mac-app
249
- ```
250
-
251
- ![Screenshot](/screenshots/cryptopunks-gui-package-screenshot-mac-dmg.png)
252
-
253
217
  ## TODO
254
218
 
255
219
  [TODO.md](TODO.md)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -13,51 +13,14 @@ class CryptopunksGui
13
13
 
14
14
  PALETTES = ['Standard'] + (Palette8bit.constants).map(&:name).map {|palette| palette.split('_').map(&:capitalize).join(' ')}.reject { |palette| palette.include?(' ') }.sort
15
15
  STYLES = ['Normal', 'Led', 'Sketch']
16
- COLLECTION_URL_MAP = {
17
- 'Punks' => {url: 'https://raw.githubusercontent.com/larvalabs/cryptopunks/master/punks.png', width: 24, height: 24, default_zoom: 12},
18
- 'Mohawks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/mohawks.png', width: 24, height: 24, default_zoom: 12},
19
- 'Blondies' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/blondies.png', width: 24, height: 24, default_zoom: 12},
20
- 'Zombies' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/zombies.png', width: 24, height: 24, default_zoom: 12},
21
- 'Apes' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/apes.png', width: 24, height: 24, default_zoom: 12},
22
- 'Aliens' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/aliens.png', width: 24, height: 24, default_zoom: 12},
23
- 'Golden Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/goldenpunks.png', width: 24, height: 24, default_zoom: 12},
24
- 'Halloween Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/halloweenpunks.png', width: 24, height: 24, default_zoom: 12},
25
- 'Scream Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/screampunks%402x.png', width: 48, height: 48, default_zoom: 6},
26
- "Jack 'O' Lantern Punks" => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/jackpunks%402x.png', width: 48, height: 48, default_zoom: 6},
27
- 'Joker Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/jokerpunks%402x.png', width: 48, height: 48, default_zoom: 6},
28
- 'Frankenstein Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/cryptopunks/master/halloween/i/frankensteinpunks%402x.png', width: 48, height: 48, default_zoom: 6},
29
- 'Front Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/frontpunks.png', width: 24, height: 24, default_zoom: 12},
30
- 'More Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/morepunks.png', width: 24, height: 24, default_zoom: 12},
31
- 'Expansion Punks' => {url: 'https://expansionpunks.com/provenance/expansionpunks.png', width: 24, height: 24, default_zoom: 12},
32
- 'Avalanche Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/avalanchepunks.png', width: 24, height: 24, default_zoom: 12},
33
- 'International Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/intlpunks.png', width: 24, height: 24, default_zoom: 12},
34
- 'Ape Punks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/apepunks.png', width: 24, height: 24, default_zoom: 12},
35
- 'Alien Clan' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/alienclan.png', width: 24, height: 24, default_zoom: 12},
36
- 'Bored Apes' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes.png', width: 28, height: 28, default_zoom: 10},
37
- 'Bored Apes Blue' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes_blue.png', width: 28, height: 28, default_zoom: 10},
38
- 'Bored Apes Red' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes_red.png', width: 28, height: 28, default_zoom: 10},
39
- 'Bored Apes Neon Glow' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes_neon_glow.png', width: 28, height: 28, default_zoom: 10},
40
- 'Bored Apes Stars and Stripes' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes_stars_and_stripes.png', width: 28, height: 28, default_zoom: 10},
41
- 'Bored Apes Acid' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/boredapes_acid.png', width: 28, height: 28, default_zoom: 10},
42
- 'Cool Cats' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats.png', width: 24, height: 24, default_zoom: 12},
43
- 'Cool Cats Mohawks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_mohawks.png', width: 24, height: 24, default_zoom: 12},
44
- 'Cool Cats Ninjas' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_ninjas.png', width: 24, height: 24, default_zoom: 12},
45
- 'Cool Cats TV Heads' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_tvheads.png', width: 24, height: 24, default_zoom: 12},
46
- 'Cool Cats Pirates' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_pirates.png', width: 24, height: 24, default_zoom: 12},
47
- 'Cool Cats Unicorns' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_unicorns.png', width: 24, height: 24, default_zoom: 12},
48
- 'Cool Cats Dragons' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_dragons.png', width: 24, height: 24, default_zoom: 12},
49
- 'Cool Cats Frogs' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/coolcats_frogs.png', width: 24, height: 24, default_zoom: 12},
50
- 'Pudgy Penguins' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/pudgypenguins.png', width: 24, height: 24, default_zoom: 12},
51
- 'Dodge' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/dodge.png', width: 24, height: 24, default_zoom: 12},
52
- 'Rocks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/rocks.png', width: 24, height: 24, default_zoom: 12},
53
- 'Punk Rocks' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/programming-cryptopunks/master/i/punkrocks.png', width: 24, height: 24, default_zoom: 12},
54
- 'Tulips' => {url: 'https://raw.githubusercontent.com/cryptopunksnotdead/awesome-24px/master/collection/tulips.png', width: 24, height: 24, default_zoom: 12},
55
- }
16
+ COLLECTIONS_YAML_URL = 'https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/cryptopunks-collections.yml'
17
+ COLLECTIONS_YAML_PATH = File.expand_path('../cryptopunks-collections.yml', __dir__)
56
18
 
57
19
  attr_accessor :collection, :image_index, :zoom, :palette, :style, :led_spacing, :led_round_corner, :sketch_line, :flip, :mirror
58
20
 
59
21
  def initialize
60
22
  initialize_punk_directory
23
+ initialize_collections_map
61
24
  initialize_collection
62
25
  load_config
63
26
  initialize_defaults
@@ -68,7 +31,7 @@ class CryptopunksGui
68
31
  end
69
32
 
70
33
  def collection_options
71
- COLLECTION_URL_MAP.keys
34
+ @collections_map.keys
72
35
  end
73
36
 
74
37
  def palette_options
@@ -84,12 +47,28 @@ class CryptopunksGui
84
47
  FileUtils.mkdir_p(@punk_directory)
85
48
  end
86
49
 
50
+ def initialize_collections_map
51
+ begin
52
+ http_response = Net::HTTP.get_response(URI(COLLECTIONS_YAML_URL))
53
+ if http_response.is_a?(Net::HTTPSuccess)
54
+ @collections_map = YAML.load(http_response.body)
55
+ else
56
+ raise "code: #{http_response.code} message: #{http_response.message}"
57
+ end
58
+ rescue StandardError, SocketError => e
59
+ puts "Failed to utilize collection YAML from: #{COLLECTIONS_YAML_URL}"
60
+ puts e.full_message
61
+ puts "Utilizing local collection YAML instead: #{COLLECTIONS_YAML_PATH}"
62
+ @collections_map = YAML.load(File.read(COLLECTIONS_YAML_PATH))
63
+ end
64
+ end
65
+
87
66
  def initialize_collection
88
67
  return if @collection && @collection == @last_collection
89
- @collection ||= COLLECTION_URL_MAP.keys.first
90
- url = COLLECTION_URL_MAP[@collection][:url]
91
- width = COLLECTION_URL_MAP[@collection][:width]
92
- height = COLLECTION_URL_MAP[@collection][:height]
68
+ @collection ||= @collections_map.keys.first
69
+ url = @collections_map[@collection][:url]
70
+ width = @collections_map[@collection][:width]
71
+ height = @collections_map[@collection][:height]
93
72
  @punk_file = File.join(@punk_config_directory, File.basename(url, '.png'))
94
73
  File.write(@punk_file, Net::HTTP.get(URI(url))) unless File.exist?(@punk_file)
95
74
  @images ||= {}
@@ -111,7 +90,7 @@ class CryptopunksGui
111
90
  end
112
91
 
113
92
  def initialize_defaults
114
- @collection = COLLECTION_URL_MAP.keys.first
93
+ @collection = @collections_map.keys.first
115
94
  @zoom = 12
116
95
  @palette = PALETTES.first
117
96
  @style = STYLES.first
@@ -144,8 +123,8 @@ class CryptopunksGui
144
123
  selected_punk = @images[@collection][@image_index.to_i]
145
124
  selected_punk = selected_punk.change_palette8bit(Palette8bit.const_get(@palette.gsub(' ', '_').upcase.to_sym)) if @palette != PALETTES.first
146
125
  @original_zoom = @zoom
147
- if @previous_collection && @collection != @previous_collection && COLLECTION_URL_MAP[@collection][:width] != COLLECTION_URL_MAP[@previous_collection][:width]
148
- @zoom = COLLECTION_URL_MAP[@collection][:default_zoom]
126
+ if @previous_collection && @collection != @previous_collection && @collections_map[@collection][:width] != @collections_map[@previous_collection][:width]
127
+ @zoom = @collections_map[@collection][:default_zoom]
149
128
  end
150
129
  if @style != STYLES.first
151
130
  style_options = {}
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: cryptopunks-gui 0.0.10 ruby app
5
+ # stub: cryptopunks-gui 0.0.11 ruby app
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "cryptopunks-gui".freeze
9
- s.version = "0.0.10"
9
+ s.version = "0.0.11"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["app".freeze]
13
13
  s.authors = ["Andy Maleh".freeze]
14
- s.date = "2021-11-02"
14
+ s.date = "2021-11-06"
15
15
  s.description = "CryptoPunks GUI for Simplified Minting - Built with Glimmer DSL for Tk (requires ActiveTcl to run cryptopunks-gui command)".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.executables = ["cryptopunks-gui".freeze]
@@ -27,11 +27,6 @@ Gem::Specification.new do |s|
27
27
  "VERSION",
28
28
  "app/cryptopunks_gui.rb",
29
29
  "bin/cryptopunks-gui",
30
- "bin/cryptopunks-mac-gui",
31
- "bin/cryptopunks-mac-gui.rb",
32
- "bin/package-mac",
33
- "bin/package-mac-app",
34
- "bin/package-mac-dmg",
35
30
  "cryptopunks-gui.gemspec",
36
31
  "icons/cryptopunks-gui.icns",
37
32
  "icons/cryptopunks-gui.png"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptopunks-gui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-02 00:00:00.000000000 Z
11
+ date: 2021-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer-dsl-tk
@@ -125,11 +125,6 @@ files:
125
125
  - VERSION
126
126
  - app/cryptopunks_gui.rb
127
127
  - bin/cryptopunks-gui
128
- - bin/cryptopunks-mac-gui
129
- - bin/cryptopunks-mac-gui.rb
130
- - bin/package-mac
131
- - bin/package-mac-app
132
- - bin/package-mac-dmg
133
128
  - cryptopunks-gui.gemspec
134
129
  - icons/cryptopunks-gui.icns
135
130
  - icons/cryptopunks-gui.png
@@ -1,8 +0,0 @@
1
- #!/bin/sh
2
-
3
- mkdir -p ~/Library/Frameworks
4
- [ ! -d ~/Library/Tcl ] && cp -r Tcl ~/Library/Tcl
5
- [ ! -d ~/Library/Frameworks/Tcl.framework ] && cp -r Tcl.framework ~/Library/Frameworks/Tcl.framework
6
- [ ! -d ~/Library/Frameworks/Tk.framework ] && cp -r Tk.framework ~/Library/Frameworks/Tk.framework
7
-
8
- ruby-3.0.2/bin/ruby cryptopunks-gui/bin/cryptopunks-mac-gui.rb
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- Gem.paths = {
4
- 'GEM_HOME' => File.expand_path('../../ruby-3.0.2@cryptopunks-gui', __dir__),
5
- 'GEM_PATH' => Gem.paths.path + [File.expand_path('../../ruby-3.0.2@cryptopunks-gui', __dir__)],
6
- 'GEM_SPEC_CACHE' => Gem.paths.spec_cache_dir
7
- }
8
- require_relative '../app/cryptopunks_gui.rb'
data/bin/package-mac DELETED
@@ -1,8 +0,0 @@
1
- #!/bin/sh
2
-
3
- source "$(dirname "$BASH_SOURCE")/package-mac-dmg"
4
- echo "Moving .app file to ~/Applications/ to make ready for use..."
5
- rm -rf ~/Applications/CryptoPunks\ GUI.app
6
- mv ~/Applications/CryptoPunks\ GUI/CryptoPunks\ GUI.app ~/Applications/CryptoPunks\ GUI.app
7
- rm -rf ~/Applications/CryptoPunks\ GUI
8
- echo "Done packaging."
data/bin/package-mac-app DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/sh
2
-
3
- echo "Packaging .app file..."
4
- mkdir -p ~/Applications/CryptoPunks\ GUI
5
- platypus --quit-after-execution --interface-type "None" --name "CryptoPunks GUI" --app-icon "icons/cryptopunks-gui.icns" --author "Andy Maleh" --app-version "1.0.0" --bundle-identifier "org.andymaleh.CryptoPunksGUI" --bundled-file "$(pwd)|$(dirname $(dirname $(which ruby)))|$(dirname $(dirname $(dirname $(dirname $(gem which glimmer)))))|/Library/Frameworks/Tcl.framework|/Library/Frameworks/Tk.framework|/Library/Tcl" "bin/cryptopunks-mac-gui" --overwrite "~/Applications/CryptoPunks GUI/CryptoPunks GUI.app"
data/bin/package-mac-dmg DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
-
3
- source "$(dirname "$BASH_SOURCE")/package-mac-app"
4
- echo "Packaging .dmg file..."
5
- rm -rf ~/Applications/CryptoPunks\ GUI.dmg
6
- hdiutil create -format UDZO -srcfolder ~/Applications/CryptoPunks\ GUI ~/Applications/CryptoPunks\ GUI.dmg