This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this script using `ruby package.rb` with an executable named `app` | |
# in a `build/` directory. | |
# Build an app bundle for macOS | |
def build_macos_package | |
require 'fileutils' | |
info_plist = %( | |
<?xml version="1.0" encoding="UTF-8"?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires exiftool, install using Homebrew: | |
# brew install exiftool | |
require 'time' | |
Dir.glob('*.{heic,mov}') do |file| | |
puts "Renaming #{file}" | |
case File.extname(file) | |
when '.heic' |
OlderNewer