cryptopunks-gui 0.0.9 → 0.0.10

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: e8d25a5e618dcccd4040032c7a0957938d5b349688e701751f96e09cddb51917
4
- data.tar.gz: 3afc23cc9be06e3dba292ed17248133e4250195c256f06f6986fd8011976c3a1
3
+ metadata.gz: 500d88447b105a1383d4de25cecaf39b5d805420edab28638b157a11e243422a
4
+ data.tar.gz: 4af0fa654391c4208f330d221b39d7b5b8741d42464c1a57db0d4246a04c640e
5
5
  SHA512:
6
- metadata.gz: 858543e8a8385eccbe3af5476aed027e99fe991eeea40bf8fbcdbd3fef45866bf712725c3833d9c6b9225e4b95cabd462045a84c266da2179189ca3b3cab5038
7
- data.tar.gz: c1679d9d0cd0d6091d4a4abf270cb419e4dac4ce3b5a5953d0a9682f9dae2eef504d9b5df661004e8af3f0092cf948ac5375132f0e090a41a8f9dc1285b5bb30
6
+ metadata.gz: 8f14974ea5229ad9bafea8dbbb15f9e874ccddd4107ba600ca5731fa2eb34b4a06742a7a3d5b25fc42cc1d1d9dcde264d1f592a2cbf150d88dfaae1d22bf74e9
7
+ data.tar.gz: 8386c9af297624919012fc389925b968cb0d76c501b55407dc8be9c9c79cf6f11274b9792ffc8b965cd1ee205ef05fcb8a0a7160a9ecf0ef8a03bf13aa470fad
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.10
4
+
5
+ - Fix issue with cryptopunks GUI erroring when cancelling selection of a new output location (or getting blocked by OS for security reasons)
6
+
3
7
  ## 0.0.9
4
8
 
5
- - Added Halloween special collections: Scream, Jack 'O' Lantern, Joker, and Frankestein
9
+ - Added Halloween special collections: Scream, Jack 'O' Lantern, Joker, and Frankenstein
6
10
 
7
11
  ## 0.0.8
8
12
 
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.9
1
+ # <img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=85 /> CryptoPunks GUI 0.0.10
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,11 +10,15 @@ 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
+
13
17
  ## Prerequities
14
18
 
15
19
  - [Tcl/Tk (ActiveTcl)](https://tkdocs.com/tutorial/install.html)
16
20
  - [RVM](https://rvm.io/) (unless you are on Windows)
17
- - [Ruby 3.0.2 compiled with RVM for Tk](https://rvm.io/integration/tk#tk) (unless you are on Windows for which Tcl/Tk instructions include installation of Ruby)
21
+ - [Ruby 3.0.2 compiled with RVM for Tk](https://rvm.io/integration/tk#tk) (unless you are on Windows for which Tcl/Tk instructions include installation of Ruby [get v3.0.2])
18
22
 
19
23
  ## Setup
20
24
 
@@ -25,7 +29,7 @@ You can use CryptoPunks GUI via gem or via cloning repository.
25
29
  Run:
26
30
 
27
31
  ```
28
- gem install cryptopunks-gui -v0.0.9
32
+ gem install cryptopunks-gui -v0.0.10
29
33
  ```
30
34
 
31
35
  Afterwards, run app via:
@@ -117,6 +121,14 @@ There are currently 38 available collections (from https://github.com/cryptopunk
117
121
 
118
122
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-apes.png)
119
123
 
124
+ ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-scream-punks.png)
125
+
126
+ ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-jack-o-lantern-punks.png)
127
+
128
+ ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-joker-punks.png)
129
+
130
+ ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-frankenstein-punks.png)
131
+
120
132
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-alien-clan.png)
121
133
 
122
134
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-collection-bored-apes-stars-and-stripes.png)
@@ -199,6 +211,45 @@ You may select a new output location by clicking on the `...` button.
199
211
 
200
212
  ![Screenshot](/screenshots/cryptopunks-gui-screenshot-output-location.png)
201
213
 
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
+
202
253
  ## TODO
203
254
 
204
255
  [TODO.md](TODO.md)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
@@ -268,10 +268,13 @@ class CryptopunksGui
268
268
  width 1.1
269
269
 
270
270
  on('command') do
271
- @punk_directory = choose_directory(parent: @root)
272
- @punk_config[:punk_directory] = @punk_directory
273
- save_config
274
- generate_image
271
+ new_punk_directory = choose_directory(parent: @root)
272
+ unless new_punk_directory.to_s.empty?
273
+ @punk_directory = new_punk_directory
274
+ @punk_config[:punk_directory] = @punk_directory
275
+ save_config
276
+ generate_image
277
+ end
275
278
  end
276
279
  }
277
280
  }
@@ -0,0 +1,8 @@
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
@@ -0,0 +1,8 @@
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 ADDED
@@ -0,0 +1,8 @@
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."
@@ -0,0 +1,5 @@
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"
@@ -0,0 +1,6 @@
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
@@ -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.9 ruby app
5
+ # stub: cryptopunks-gui 0.0.10 ruby app
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "cryptopunks-gui".freeze
9
- s.version = "0.0.9"
9
+ s.version = "0.0.10"
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-10-30"
14
+ s.date = "2021-11-02"
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,7 +27,13 @@ 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",
30
35
  "cryptopunks-gui.gemspec",
36
+ "icons/cryptopunks-gui.icns",
31
37
  "icons/cryptopunks-gui.png"
32
38
  ]
33
39
  s.homepage = "http://github.com/AndyObtiva/cryptopunks-gui".freeze
Binary file
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.9
4
+ version: 0.0.10
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-10-30 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer-dsl-tk
@@ -125,7 +125,13 @@ 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
128
133
  - cryptopunks-gui.gemspec
134
+ - icons/cryptopunks-gui.icns
129
135
  - icons/cryptopunks-gui.png
130
136
  homepage: http://github.com/AndyObtiva/cryptopunks-gui
131
137
  licenses: