Skip to content

Commit

Permalink
Rename writer to imprint
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Nov 5, 2024
1 parent 24f020f commit 77a7524
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ jobs:
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: writer-${{ runner.os }}
path: writer*
name: imprint-${{ runner.os }}
path: imprint*
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/writer
/imprint

### Go ###
# Binaries for programs and plugins
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# writer
# imprint

An small, intuitive app to flash ISOs and disk images to external drives e.g. USB drives.
4 changes: 2 additions & 2 deletions app/execdd.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (err *DdError) Error() string {

// CopyConvert executes the `dd` Unix utility and provides its output.
//
// Technically, this isn't true anymore, it executes writer itself
// with some special parameters as admin. The new writer process
// Technically, this isn't true anymore, it executes imprint itself
// with some special parameters as admin. The new imprint process
// wraps `dd` and accepts "stop\n" stdin to terminate dd. This is
// because killing the process doesn't work with pkexec/osascript,
// and this approach enables us to reimplement dd fully.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/retrixe/writer
module github.com/retrixe/imprint

go 1.19

Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

_ "embed"

"github.com/retrixe/writer/app"
"github.com/retrixe/imprint/app"
"github.com/sqweek/dialog"
webview "github.com/webview/webview_go"
)
Expand Down Expand Up @@ -44,14 +44,14 @@ func ParseToJsString(s string) string {

func main() {
if len(os.Args) >= 2 && (os.Args[1] == "-v" || os.Args[1] == "--version") {
println("writer version v" + version)
println("imprint version v" + version)
return
} else if len(os.Args) >= 2 && os.Args[1] == "flash" {
log.SetFlags(0)
log.SetOutput(os.Stderr)
log.SetPrefix("[flash] ")
if len(os.Args) < 4 {
println("Invalid usage: writer flash <file> <destination> (--use-system-dd)")
println("Invalid usage: imprint flash <file> <destination> (--use-system-dd)")
os.Exit(1)
}
if err := app.UnmountDevice(os.Args[3]); err != nil {
Expand All @@ -74,7 +74,7 @@ func main() {
w = webview.New(debug)
defer w.Destroy()
w.SetSize(420, 210, webview.HintNone)
w.SetTitle("Writer " + version)
w.SetTitle("Imprint " + version)

// Bind variables.
// w.Bind("setFileGo", func(newFile string) {file = newFile})
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "writer",
"name": "imprint",
"version": "1.0.0-alpha.2",
"description": "An small, intuitive app to flash ISOs and disk images to external drives e.g. USB drives.",
"repository": "https://github.com/retrixe/writer.git",
"repository": "https://github.com/retrixe/imprint.git",
"author": "retrixe",
"license": "Apache-2.0",
"private": true,
Expand All @@ -12,8 +12,8 @@
"start": "parcel build renderer/index.tsx && go run .",
"build": "parcel build renderer/index.tsx --no-source-maps && yarn build:go",
"build:go": "run-script-os",
"build:go:default": "go build -ldflags=\"-s -w\" -o writer -v",
"build:go:windows": "go build -ldflags=\"-s -w -H windowsgui\" -o writer.exe -v"
"build:go:default": "go build -ldflags=\"-s -w\" -o imprint -v",
"build:go:windows": "go build -ldflags=\"-s -w -H windowsgui\" -o imprint.exe -v"
},
"packageManager": "[email protected]",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6880,9 +6880,9 @@ __metadata:
languageName: node
linkType: hard

"writer@workspace:.":
"imprint@workspace:.":
version: 0.0.0-use.local
resolution: "writer@workspace:."
resolution: "imprint@workspace:."
dependencies:
"@babel/core": "npm:^7.26.0"
"@emotion/babel-plugin": "npm:^11.12.0"
Expand Down

0 comments on commit 77a7524

Please sign in to comment.