Skip to content

Commit e736d7a

Browse files
authored
Change most references of "Emulsion" => "Alloy" (#202)
1 parent 9c1843e commit e736d7a

20 files changed

+49
-54
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ edition = "2021"
99
build = "build.rs"
1010

1111
[package.metadata.bundle]
12-
name = "Emulsion"
12+
name = "Alloy"
1313
identifier = "org.ardaku.alloy"
14-
icon = ["resource_dev/emulsion.png"]
14+
icon = ["resource_dev/alloy.png"]
1515
resources = ["LICENSE.txt"]
1616
short_description = "A lightweight and minimalistic image viewer based on emulsion"
1717
copyright = "Copyright (c) 2020 The Emulsion Contributors, Copyright (c) 2022 The Alloy Contributors"

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
## Alloy
2-
Image viewer based on (now-discontinued)
3-
[Emulsion](https://arturkovacs.github.io/emulsion-website/).
2+
Image viewer based on (now-discontinued) [Emulsion].
43

54
Alloy targets Windows, Mac, and Linux (with more targets to come!).
65

@@ -42,9 +41,9 @@ future.
4241
If Alloy closes unexpectedly please locate the `"panic.txt"` file. This file has
4342
a different location depending on the target platform.
4443

45-
- Windows: `%localappdata%\emulsion\data`
46-
- MacOS: `$HOME/Library/Application Support/emulsion`
47-
- Linux: `$XDG_DATA_HOME/emulsion` or `$HOME/.local/share/emulsion`
44+
- Windows: `%localappdata%\alloy\data`
45+
- MacOS: `$HOME/Library/Application Support/alloy`
46+
- Linux: `$XDG_DATA_HOME/alloy` or `$HOME/.local/share/alloy`
4847

4948
When posting a bug report please upload the contents of this file to GitHub.
5049
If you deem it too large just paste the last panic entry between the rows of

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use std::{env, fs, path::Path};
66
#[cfg(windows)]
77
fn platform_specific() {
88
let mut res = winres::WindowsResource::new();
9-
res.set("FileDescription", "Emulsion");
10-
res.set_icon("resource_dev/emulsion.ico");
9+
res.set("FileDescription", "Alloy");
10+
res.set_icon("resource_dev/alloy.ico");
1111
res.compile().unwrap();
1212
}
1313

distribution/macos/background.svg

Lines changed: 0 additions & 1 deletion
Loading

distribution/macos/create_dmg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
create-dmg --dmg-title='Emulsion.dmg' target/release/bundle/osx/Emulsion.app
2+
create-dmg --dmg-title='Alloy.dmg' target/release/bundle/osx/Alloy.app
33
exit 0
File renamed without changes.
File renamed without changes.

distribution/windows/emulsion.nsi renamed to distribution/windows/alloy.nsi

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Unicode True
77

88
; VERSION is defined through a command line argument to the maker
99
; for example:
10-
; makensis.exe /DVERSION=9.0 emulsion.nsi
10+
; makensis.exe /DVERSION=9.0 alloy.nsi
1111

12-
!define PROGRAM_NAME "Emulsion"
13-
!define REG_PROG_PATH "SOFTWARE\Emulsion"
14-
!define REG_UNINST_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\Emulsion"
12+
!define PROGRAM_NAME "Alloy"
13+
!define REG_PROG_PATH "SOFTWARE\Alloy"
14+
!define REG_UNINST_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\Alloy"
1515
!define MULTIUSER_INSTALLMODE_INSTDIR "${PROGRAM_NAME}"
1616
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "${REG_PROG_PATH}"
1717
!define MULTIUSER_EXECUTIONLEVEL Highest
@@ -31,11 +31,11 @@ Unicode True
3131
;General
3232

3333
;Name and file
34-
Name "Emulsion"
35-
OutFile "Emulsion-Installer.exe"
34+
Name "Alloy"
35+
OutFile "Alloy-Installer.exe"
3636

3737
;Default installation folder
38-
;InstallDir "$LOCALAPPDATA\Emulsion"
38+
;InstallDir "$LOCALAPPDATA\Alloy"
3939

4040
;Get installation folder from registry if available
4141
;InstallDirRegKey SHCTX "${REG_PROG_PATH}" ""
@@ -48,7 +48,7 @@ Unicode True
4848
;Interface Settings
4949

5050
!define MUI_ABORTWARNING
51-
!define MUI_ICON "emulsion.ico"
51+
!define MUI_ICON "alloy.ico"
5252
!define MUI_HEADERIMAGE
5353
;!define MUI_HEADERIMAGE_BITMAP
5454
!define MUI_HEADERIMAGE_BITMAP "empty.bmp"
@@ -86,7 +86,7 @@ Function un.onInit
8686
FunctionEnd
8787

8888

89-
!macro EmulsionRegisterExtension ExtensionName Description
89+
!macro AlloyRegisterExtension ExtensionName Description
9090
; First, let's create the ProgID for the extension
9191
; For more information about what is being done here, see
9292
; "Default Programs"
@@ -99,14 +99,14 @@ FunctionEnd
9999
WriteRegStr SHCTX "${REG_PROG_PATH}\Capabilities\FileAssociations" ".${ExtensionName}" "${GENERIC_PROG_ID}"
100100
!macroend
101101

102-
; !macro EmulsionUnregisterExtension ExtensionName Description
102+
; !macro AlloyUnregisterExtension ExtensionName Description
103103
; ${UnRegisterExtension} ".${ExtensionName}" "${Description}"
104104
; !macroend
105105

106106
;--------------------------------
107107
;Installer Sections
108108

109-
Section "Emulsion" SecEmulsion
109+
Section "Alloy" SecAlloy
110110
SectionIn RO
111111

112112
SetOutPath "$INSTDIR"
@@ -123,34 +123,34 @@ Section "Emulsion" SecEmulsion
123123
WriteRegStr SHCTX "${REG_PROG_PATH}" "Install Directory" "$INSTDIR"
124124

125125
WriteRegStr SHCTX "${REG_UNINST_PATH}" "DisplayName" "${PROGRAM_NAME}"
126-
WriteRegStr SHCTX "${REG_UNINST_PATH}" "DisplayIcon" "$\"$INSTDIR\emulsion.exe$\""
126+
WriteRegStr SHCTX "${REG_UNINST_PATH}" "DisplayIcon" "$\"$INSTDIR\alloy.exe$\""
127127
WriteRegStr SHCTX "${REG_UNINST_PATH}" "UninstallString" "$\"$INSTDIR\Uninstall.exe$\" /$MultiUser.InstallMode"
128128
WriteRegStr SHCTX "${REG_UNINST_PATH}" "QuietUninstallString" "$\"$INSTDIR\Uninstall.exe$\" /$MultiUser.InstallMode /S"
129129

130130
;Create uninstaller
131131
WriteUninstaller "$INSTDIR\Uninstall.exe"
132132

133133
; Program description and list of supported extensions
134-
; (This in itself does not associate the extensions to Emulsion)
134+
; (This in itself does not associate the extensions to Alloy)
135135
WriteRegStr SHCTX "${REG_PROG_PATH}\Capabilities" "ApplicationDescription" "A fast and minimalistic image viewer"
136136
WriteRegStr SHCTX "${REG_PROG_PATH}\Capabilities" "ApplicationName" "${PROGRAM_NAME}"
137137

138-
!insertmacro EmulsionRegisterExtension "jpg" "JPG Image"
139-
!insertmacro EmulsionRegisterExtension "jpeg" "JPEG Image"
140-
!insertmacro EmulsionRegisterExtension "png" "PNG Image"
141-
!insertmacro EmulsionRegisterExtension "bmp" "BMP Image"
142-
!insertmacro EmulsionRegisterExtension "gif" "GIF Image"
143-
!insertmacro EmulsionRegisterExtension "tga" "TGA Image"
144-
!insertmacro EmulsionRegisterExtension "avif" "AVIF Image"
145-
!insertmacro EmulsionRegisterExtension "webp" "WEBP Image"
146-
!insertmacro EmulsionRegisterExtension "tif" "TIF Image"
147-
!insertmacro EmulsionRegisterExtension "tiff" "TIFF Image"
148-
!insertmacro EmulsionRegisterExtension "ico" "ICO Image"
149-
!insertmacro EmulsionRegisterExtension "hdr" "HDR Image"
150-
!insertmacro EmulsionRegisterExtension "pbm" "PBM Image"
151-
!insertmacro EmulsionRegisterExtension "pam" "PAM Image"
152-
!insertmacro EmulsionRegisterExtension "ppm" "PPM Image"
153-
!insertmacro EmulsionRegisterExtension "pgm" "PGM Image"
138+
!insertmacro AlloyRegisterExtension "jpg" "JPG Image"
139+
!insertmacro AlloyRegisterExtension "jpeg" "JPEG Image"
140+
!insertmacro AlloyRegisterExtension "png" "PNG Image"
141+
!insertmacro AlloyRegisterExtension "bmp" "BMP Image"
142+
!insertmacro AlloyRegisterExtension "gif" "GIF Image"
143+
!insertmacro AlloyRegisterExtension "tga" "TGA Image"
144+
!insertmacro AlloyRegisterExtension "avif" "AVIF Image"
145+
!insertmacro AlloyRegisterExtension "webp" "WEBP Image"
146+
!insertmacro AlloyRegisterExtension "tif" "TIF Image"
147+
!insertmacro AlloyRegisterExtension "tiff" "TIFF Image"
148+
!insertmacro AlloyRegisterExtension "ico" "ICO Image"
149+
!insertmacro AlloyRegisterExtension "hdr" "HDR Image"
150+
!insertmacro AlloyRegisterExtension "pbm" "PBM Image"
151+
!insertmacro AlloyRegisterExtension "pam" "PAM Image"
152+
!insertmacro AlloyRegisterExtension "ppm" "PPM Image"
153+
!insertmacro AlloyRegisterExtension "pgm" "PGM Image"
154154

155155
WriteRegStr SHCTX "SOFTWARE\RegisteredApplications" "ArturK.${PROGRAM_NAME}.${VERSION}" "${REG_PROG_PATH}\Capabilities"
156156

@@ -159,7 +159,7 @@ Section "Emulsion" SecEmulsion
159159
!insertmacro UPDATEFILEASSOC
160160
SectionEnd
161161

162-
; These are the programs that are needed by Emulsion.
162+
; These are the programs that are needed by Alloy.
163163
Section -Prerequisites
164164
IfFileExists $SYSDIR\vcruntime140.dll endVsRedist beginVsRedist
165165
Goto endVsRedist
@@ -173,8 +173,8 @@ SectionEnd
173173
;--------------------------------
174174
;Descriptions
175175
;Language strings
176-
LangString DESC_SecEmulsion ${LANG_ENGLISH} "The program itself."
177-
;LangString DESC_SecAssociate ${LANG_ENGLISH} "Associate jpg, jpeg, png, bmp, gif, tga, avif, webp, tif, tiff, hdr, pbm, pam, ppm, and pgm files with Emulsion"
176+
LangString DESC_SecAlloy ${LANG_ENGLISH} "The program itself."
177+
;LangString DESC_SecAssociate ${LANG_ENGLISH} "Associate jpg, jpeg, png, bmp, gif, tga, avif, webp, tif, tiff, hdr, pbm, pam, ppm, and pgm files with Alloy"
178178

179179
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
180180
; These are only relevant when using the MUI_PAGE_COMPONENTS
@@ -183,7 +183,7 @@ SectionEnd
183183
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
184184
;Assign language strings to sections
185185
;!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
186-
; !insertmacro MUI_DESCRIPTION_TEXT ${SecEmulsion} $(DESC_SecEmulsion)
186+
; !insertmacro MUI_DESCRIPTION_TEXT ${SecAlloy} $(DESC_SecAlloy)
187187
; !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociate} $(DESC_SecAssociate)
188188
;!insertmacro MUI_FUNCTION_DESCRIPTION_END
189189
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -198,7 +198,7 @@ Section Uninstall
198198
; Try to remove the Start Menu folder - this will only happen if it is empty
199199
RMDir "$SMPROGRAMS\${PROGRAM_NAME}"
200200

201-
Delete "$INSTDIR\emulsion.exe"
201+
Delete "$INSTDIR\alloy.exe"
202202
Delete "$INSTDIR\Uninstall.exe"
203203
RMDir "$INSTDIR" ; This is okay, rmdir fails if the directory is not empty.
204204

@@ -207,6 +207,6 @@ Section Uninstall
207207
DeleteRegKey SHCTX "${REG_UNINST_PATH}"
208208

209209
; Extensions mustn't be unregistered here. They might be associated
210-
; with a program other than Emulsion and removing those would be wrong.
210+
; with a program other than Alloy and removing those would be wrong.
211211

212212
SectionEnd
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
call update_files.bat
2-
makensis /DVERSION=0.0.0-test-build emulsion.nsi
2+
makensis /DVERSION=0.0.0-test-build alloy.nsi
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
@echo off
32
set "distribution_dir=%cd%"
43
cd ..\..
54
cargo build --release
65

76
cd %distribution_dir%
87
mkdir program
9-
copy /y ..\..\target\release\emulsion.exe program\emulsion.exe
10-
8+
copy /y ..\..\target\release\alloy.exe program\alloy.exe

0 commit comments

Comments
 (0)