Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will now do things pure Go instead of running commands #115

Merged
merged 24 commits into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9273ba6
Will now do things pure Go instead of running commands
CalebQ42 Dec 7, 2020
cc85979
Automatically resolve symlink's for thumbnail
CalebQ42 Dec 9, 2020
a9ba98d
Initial commit for seperated library.
CalebQ42 Dec 10, 2020
c9934dc
Simplifed GoAppImage
CalebQ42 Dec 11, 2020
5bcd85c
More work on the goappimage library.
CalebQ42 Dec 11, 2020
4dd4ae2
Expirementing with using a library for type 1
CalebQ42 Dec 12, 2020
176419b
A bit more work on ExtractFileReader
CalebQ42 Dec 13, 2020
3b971d6
Working on archiverReader type
CalebQ42 Dec 13, 2020
b31ab94
Gave up on archiveReader
CalebQ42 Dec 17, 2020
3c992dd
Re-implemented archiveReader.
CalebQ42 Dec 19, 2020
cb5c2f3
Maybe finished with the library?
CalebQ42 Dec 20, 2020
fe58f62
Fixed some issues
CalebQ42 Dec 21, 2020
7c9187c
Initial integration of goappimage into appimaged
CalebQ42 Dec 22, 2020
82870ef
Possible fix
CalebQ42 Dec 22, 2020
887bb90
Messing around to get TravisCI to work
CalebQ42 Dec 22, 2020
8b3ac75
Fixed broken build due to a library
CalebQ42 Dec 22, 2020
2af72e5
Trying to figure out why travisCI isn't building
CalebQ42 Dec 22, 2020
97f7115
Trying to figure out why TravisCI for otiai10/copy
CalebQ42 Dec 22, 2020
6ad39b3
Laid the foundation for command fallback for type2
CalebQ42 Dec 23, 2020
8f55bb1
Added some fallback for type 2
CalebQ42 Dec 23, 2020
6d90b41
Merge remote-tracking branch 'upstream/master'
CalebQ42 Dec 25, 2020
77dadcf
Some work on type2 command fallback.
CalebQ42 Dec 25, 2020
5767e50
Finished command backup for type 2
CalebQ42 Dec 26, 2020
caac1cf
Updated to newest sqashfs to fix issues.
CalebQ42 Dec 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@ module github.com/probonopd/go-appimage
go 1.13

require (
github.com/CalebQ42/copy v1.4.1
github.com/CalebQ42/squashfs v0.3.6
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/acobaugh/osrelease v0.0.0-20181218015638-a93a0a55a249
github.com/adrg/xdg v0.2.1
github.com/adrg/xdg v0.2.3
github.com/alokmenghrajani/gpgeez v0.0.0-20161206084504-1a06f1c582f9
github.com/coreos/go-systemd/v22 v22.0.0
github.com/eclipse/paho.mqtt.golang v1.2.0
github.com/coreos/go-systemd/v22 v22.1.0
github.com/eclipse/paho.mqtt.golang v1.3.0
github.com/esiqveland/notify v0.9.1
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/godbus/dbus/v5 v5.0.3
github.com/google/go-github v17.0.0+incompatible
github.com/grandcat/zeroconf v1.0.0
github.com/h2non/go-is-svg v0.0.0-20160927212452-35e8c4b0612c
github.com/hashicorp/go-version v1.2.0
github.com/otiai10/copy v1.4.1
github.com/probonopd/go-zsyncmake v0.0.0-20181008012426-5db478ac2be7
github.com/prometheus/procfs v0.0.10
github.com/prometheus/procfs v0.2.0
github.com/rjeczalik/notify v0.9.2
github.com/sabhiram/png-embed v0.0.0-20180421025336-149afe9a3ccb
github.com/sabhiram/pngr v0.0.0-20180419043407-2df49b015d4b // indirect
github.com/shirou/gopsutil v2.20.2+incompatible
github.com/shuheiktgw/go-travis v0.2.4
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/shirou/gopsutil v3.20.11+incompatible
github.com/shuheiktgw/go-travis v0.3.1
github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
github.com/urfave/cli/v2 v2.2.0
github.com/urfave/cli/v2 v2.3.0
go.lsp.dev/uri v0.3.0
golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527
gopkg.in/ini.v1 v1.55.0
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/image v0.0.0-20201208152932-35266b937fa6 // indirect
golang.org/x/sys v0.0.0-20201221093633-bc327ba9c2f0
gopkg.in/ini.v1 v1.62.0
gopkg.in/src-d/go-git.v4 v4.13.1
)
94 changes: 69 additions & 25 deletions go.sum

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions internal/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func AddHereToPath() {
// FilesWithSuffixInDirectoryRecursive returns the files in a given directory with the given filename extension, and err
func FilesWithSuffixInDirectoryRecursive(directory string, extension string) []string {
var foundfiles []string
err := filepath.Walk(directory, func(path string, info os.FileInfo, err error) error {
err := filepath.Walk(directory, func(path string, info os.FileInfo, _ error) error {
if strings.HasSuffix(info.Name(), extension) {
foundfiles = append(foundfiles, path)
}
Expand Down Expand Up @@ -158,13 +158,12 @@ func CheckIfFileExists(filepath string) bool {
return true
}


// CheckIfFileOrFolderExists checks if a file exists and is not a directory before we
// try using it to prevent further errors.
// Returns true if it does, false otherwise.
func CheckIfFileOrFolderExists(filepath string) bool {
_, err := os.Stat(filepath)
if os.IsNotExist(err){
if os.IsNotExist(err) {
return false
}
return true
Expand Down
Loading